RISC OS Open
A fast and easily customised operating system for ARM devices
ROOL
Home | News | Software | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

Service_MouseTrap

Programmer's Reference Manuals
» Part 7 - The Desktop
» The Window Manager
» Service Calls
» Service_MouseTrap

Service_MouseTrap

(Service Call &52)
Entry
R0 Mouse x co-ordinate
R1 82 (&52)
R2 Button state (from OS_Mouse)
R3 Time of mouse event (from OS_ReadMonotonicTime)
R4 Mouse y co-ordinate
Exit
- All registers preserved

Use

This service is issued to inform applications that it has detected mouse movement.

Notes

This is often used by applications that wish to record mouse movements and it state of the mouse buttons so they can be played back. This can be very useful to produce applications that simulate human interaction. e.g. Demonstration software.

Applications that record the mouse positions and states, should also monitor INKEY? values as well. Both positive and negative.

See also

  • OS_Mouse
  • OS_ReadMonotonicTime
  • Service Calls
Revised on December 8, 2009 20:32:15 by Alan Robertson (52)? (127.0.0.1)
Edit | Back in time (3 revisions) | See changes | History | Views: Print | Source | Linked from: The Window Manager Service Calls, Service Calls

Search the Wiki

Commercial use

For commercial enquiries, please contact the owners of RISC OS, Castle Technology Ltd.

ROOL Store

The official C/C++ Development kit and more here.

Donate! Why?

Help ROOL make things happen – please consider donating!

Navigation

  • Home Page
  • All Pages
  • Recently Revised
  • Authors
  • Feeds
Site design © RISC OS Open Limited 2011 except where indicated
The RISC OS Open Instiki theme is based on Insitki's default layout

Valid XHTML 1.0  |  Valid CSS

Instiki 0.19.1(MML+)
This site runs on Rails

Hosted by Arachsys