Dilwyn Jones wrote: 
> Is there a way to directly read the pointer position [take the example
> of a screen saver program which is displaying a screen saver module
> (external program) but needs to monitor the mouse to see if it's been
> moved in order to to restore the screen]  which is compatible across
> all or most platforms.

Well, I haven't programmed the PE for ages, but a quick look in the
EasyPtr manual revealed the PVAL function. Example

OUTL
DIM result%(15)
REP
  RDPT 8: REMark return when mouse moves
  PVAL result%
  PRINT "New position: ";result%(14);" x ";result%(15)
END REP

You could also use
  RDPT 16+32: REMark return immediately
as the 4th line.
  
> Reading the QIMI registers will obviously only work in QIMI systems!

The QIMI doesn't know the mouse position anyway, you could just read
in which direction the mouse moved last.

> The kind of info we need to make public I think. Sadly, when trying to
> write some types of software for the QL, much of the time is spent
> trying to find the answers to such questions and it doesn't even exist
> in official documentation!

Often true, but in this case all documentation is there.

Marcel

Reply via email to