|
|
|
|
mouse... Functions
Events
MioScript Reference
|
|
Functions and events to control or get feedback from the mouse or touch screens.
Tracking the mouse position and buttons status
mouse.ID.x, mouse.ID.y
mouse.ID.isOverWindow, mouse.isOverMio
event.mouse:click, event.mouse:dblclick, event.mouse:down, event.mouse:up
event.mouse:move
event.mouse:enter, event.mouse:exit
mouse.areButtonsSwapped
Tracking the mouse wheel
To react when the user rolls the mouse wheel, declare the following events in your application.
event.mouse:wheel:down, event.mouse:wheel:up.
Tracking the mouse when not over a window
It is possible to track the mouse when the mouse is not over a window owned by the application.
mouse.x, mouse.y
event.mouse:global:move
event.mouse:global:left:down, event.mouse:global:left:up, event.mouse:global:left:dblClick
event.mouse:global:right:down, event.mouse:global:right:up, event.mouse:global:right:dblClick
Controlling the mouse
You can define a mouse cursor, move the mouse at a specified location, or hide the mouse.
Use carefuly those functions.
mouse.ID.cursor, mouse.cursor
mouse.load
mouse.pos
mouse.visible
mouse.rightClickMode, mouse.areButtonsSwapped
|
|
|