Difference between revisions of "OSWORD &15"

From BeebWiki
Jump to: navigation, search
m (1 revision)
m (Minor tidying.)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
[[Category:OSWORD]]
 
[[Category:OSWORD]]
OSWORD &15 (21 ) - Read/Write mouse and pointer infomation Arthur
+
{{PageTitle|OSWORD &15 (21): Mouse/pointer information}}
  
XY?0=0 - Set pointer size, shape and active point
+
==XY?0=0 - Set pointer size, shape and active point==
 
  On entry:
 
  On entry:
 +
  XY?0=0
 
   XY?1=shape number (1-4)
 
   XY?1=shape number (1-4)
 
   XY?2=width in bytes (0-8)
 
   XY?2=width in bytes (0-8)
 
   XY?3=height in pixels (0-32)
 
   XY?3=height in pixels (0-32)
   XY?4=ActiveX in pixels from left
+
   XY?4=activeX in pixels from left
   XY?5=ActiveY in pixels from top
+
   XY?5=activeY in pixels from top
 
   XY!6=>pointer shape data
 
   XY!6=>pointer shape data
  
XY?0=1 - Define mouse bounding box
+
==XY?0=1 - Define mouse bounding box==
 
  On entry:
 
  On entry:
 +
  XY?0  =1
 
   XY+1..2=left coordinate
 
   XY+1..2=left coordinate
 
   XY+3..4=bottom coordinate
 
   XY+3..4=bottom coordinate
Line 18: Line 20:
 
   XY+7..8=top coordinate
 
   XY+7..8=top coordinate
  
XY?0=2 - Set mouse multipliers
+
==XY?0=2 - Set mouse multipliers==
 
  On entry:
 
  On entry:
 +
  XY?0=2
 
   XY?1=signed 8-bit X multiplier
 
   XY?1=signed 8-bit X multiplier
 
   XY?2=signed 8-bit Y multiplier
 
   XY?2=signed 8-bit Y multiplier
  
XY?0=3 - Set mouse position
+
==XY?0=3 - Set mouse position==
 
  On entry:
 
  On entry:
 +
  XY?0  =3
 
   XY+1..2=X position
 
   XY+1..2=X position
 
   XY+3..4=Y position.
 
   XY+3..4=Y position.
  
XY?0=4 - Read unbuffered mouse position
+
==XY?0=4 - Read unbuffered mouse position==
 +
On entry:
 +
  XY?0  =4
 
  On exit:
 
  On exit:
 
   XY+1..2=X position
 
   XY+1..2=X position
 
   XY+3..4=Y position
 
   XY+3..4=Y position
  
XY?0=5 - Set pointer position
+
==XY?0=5 - Set pointer position==
 
  On entry:
 
  On entry:
 +
  XY?0  =5
 
   XY+1..2=X position
 
   XY+1..2=X position
 
   XY+3..4=Y position
 
   XY+3..4=Y position
  
XY?0=6 - Read pointer position
+
==XY?0=6 - Read pointer position==
 +
On entry:
 +
  XY?0  =4
 
  On exit:
 
  On exit:
 
   XY+1..2=X position
 
   XY+1..2=X position
 
   XY+3..4=Y position
 
   XY+3..4=Y position
 +
 +
==Implementation==
 +
Initially implemented on Arthur.
  
 
==See Also==
 
==See Also==
Line 47: Line 59:
  
 
[[User:Jgharston|Jgharston]] 13:28, 26 May 2009 (UTC)
 
[[User:Jgharston|Jgharston]] 13:28, 26 May 2009 (UTC)
 +
[[User:Jgharston|Jgharston]] ([[User talk:Jgharston|talk]]) 18:16, 7 January 2023 (CET)

Latest revision as of 18:16, 7 January 2023

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)