OSWORD &15

From BeebWiki
Jump to: navigation, search

OSWORD &15 (21 ) - Read/Write mouse and pointer infomation Arthur

XY?0=0 - Set pointer size, shape and active point
On entry:
 XY?1=shape number (1-4)
 XY?2=width in bytes (0-8)
 XY?3=height in pixels (0-32)
 XY?4=ActiveX in pixels from left
 XY?5=ActiveY in pixels from top
 XY!6=>pointer shape data
XY?0=1 - Define mouse bounding box
On entry:
 XY+1..2=left coordinate
 XY+3..4=bottom coordinate
 XY+5..6=right coordinate
 XY+7..8=top coordinate
XY?0=2 - Set mouse multipliers
On entry:
 XY?1=signed 8-bit X multiplier
 XY?2=signed 8-bit Y multiplier
XY?0=3 - Set mouse position
On entry:
 XY+1..2=X position
 XY+3..4=Y position.
XY?0=4 - Read unbuffered mouse position
On exit:
 XY+1..2=X position
 XY+3..4=Y position
XY?0=5 - Set pointer position
On entry:
 XY+1..2=X position
 XY+3..4=Y position
XY?0=6 - Read pointer position
On exit:
 XY+1..2=X position
 XY+3..4=Y position

See Also

Jgharston 13:28, 26 May 2009 (UTC)