|
|
|
|
Functions
Events
MioScript Reference
|
|
Syntax
| mouse.areButtonsSwapped() |
Parameters
None.
Return value
Description
Returns true if mouse buttons are swapped, false otherwise.
The user can enable of disable the mouse buttons swapping from Windows settings.
When mouse buttons are swapped, right click is left click, and left click is right click.
This setting is generaly set by most of the right-handed persons.
This functions also sets the variables &MOUSE_LEFT_BT and &MOUSE_RIGHT_BT to be used with keyboard.keyState:
If mouse buttons are not swapped, &MOUSE_LEFT_BT = 1 and &MOUSE_RIGHT_BT = 2.
If mouse buttons are swapped, &MOUSE_LEFT_BT = 2 and &MOUSE_RIGHT_BT = 1.
Note: This function is defined in the library klib.k and is linked automatically. |
MioScript Sample Code
event.load
mouse.areButtonsSwapped()
...
event.end
event.scan_input
if(keyboard.keyState(&MOUSE_LEFT_BT) = 1) // Left click
...
if.end
doEvent.scanInput(10)
event.end |
|
|
|