h6. [[WindowManager]] h6(. » [[WindowManager Service Calls|Service Calls]] h6((. » Service_MouseTrap h2. Service_MouseTrap h5. (Service Call &52) |_<{width:4em}. Entry | | |<^. R0 |<^. Mouse x co-ordinate | |<^. R1 |<^. 82 (&52) | |<^. R2 |<^. Button state (from [[OS_Mouse|OS_Mouse]]) | |<^. R3 |<^. Time of mouse event (from [[OS_ReadMonotonicTime|OS_ReadMonotonicTime]]) | |<^. R4 |<^. Mouse y co-ordinate | |_<{width:4em}. Exit | | |<^. - |<^. All registers preserved | h4. Use This service is issued to inform applications that it has detected mouse movement. h4. Notes This is often used by applications that wish to record mouse movements and the 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 [[OS_Byte 129|INKEY]] values as well. Both positive and negative. h4. See also * [[OS_Mouse]] * [[OS_ReadMonotonicTime]] * [[Service Calls]]