OSWORD &15

From BeebWiki
Revision as of 18:16, 7 January 2023 by Jgharston (talk | contribs) (Minor tidying.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
OSWORD &15 (21): Mouse/pointer information

XY?0=0 - Set pointer size, shape and active point

On entry:
 XY?0=0
 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?0   =1
 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?0=2
 XY?1=signed 8-bit X multiplier
 XY?2=signed 8-bit Y multiplier

XY?0=3 - Set mouse position

On entry:
 XY?0   =3
 XY+1..2=X position
 XY+3..4=Y position.

XY?0=4 - Read unbuffered mouse position

On entry:
 XY?0   =4
On exit:
 XY+1..2=X position
 XY+3..4=Y position

XY?0=5 - Set pointer position

On entry:
 XY?0   =5
 XY+1..2=X position
 XY+3..4=Y position

XY?0=6 - Read pointer position

On entry:
 XY?0   =4
On exit:
 XY+1..2=X position
 XY+3..4=Y position

Implementation

Initially implemented on Arthur.

See Also

Jgharston 13:28, 26 May 2009 (UTC) Jgharston (talk) 18:16, 7 January 2023 (CET)