Creation | |
| MouseKeyboard | Creates a new MouseKeyboard object |
|
Functions | |
| Mouse position | |
| GetXMouse | Returns the X position of the mouse relative to the frame |
| GetYMouse | Returns the Y position of the mouse relative to the frame |
| SetXMouse | Sets the X position of the mouse relative to the frame |
| SetYMouse | Sets the Y position of the mouse relative to the frame |
| SetMousePos | Sets the X & Y position of the mouse relative to the frame |
| GetGUIXMouse | Returns the X position of the mouse relative to the gui |
| GetGUIYMouse | Returns the Y position of the mouse relative to the gui |
| GetWindowXMouse | Returns the X position of the mouse relative to the window |
| GetWindowYMouse | Returns the Y position of the mouse relative to the window |
| SetWindowXMouse | Sets the X position of the mouse relative to the window |
| SetWindowYMouse | Sets the Y position of the mouse relative to the window |
| SetWindowMousePos | Sets the X & Y position of the mouse relative to the window |
| GetScreenXMouse | Returns the X position of the mouse relative to the screen |
| GetScreenYMouse | Returns the Y position of the mouse relative to the screen |
| SetScreenXMouse | Sets the X position of the mouse relative to the screen |
| SetScreenYMouse | Sets the Y position of the mouse relative to the screen |
| SetScreenMousePos | Sets the X & Y position of the mouse relative to the screen |
| ObjectUnderMouse | Returns the topmost object currently under the mouse pointer |
| MouseIsLeft | Checks if the mouse is within a given number of pixels from the left edge of the window |
| MouseIsRight | Checks if the mouse is within a given number of pixels from the right edge of the window |
| MouseIsUp | Checks if the mouse is within a given number of pixels from the top edge of the window |
| MouseIsDown | Checks if the mouse is within a given number of pixels from the bottom edge of the window |
|
| Mouse buttons | |
| MouseClick | Returns TRUE if the given mouse button was pressed during the current frame |
| MouseClickInZone | Returns TRUE if the given mouse button was pressed during the current frame in the given zone |
| MouseClickOnObject | Returns TRUE if the given mouse button was pressed during the current frame while over the given object |
| MouseClickRep | Returns TRUE while the given mouse button is held down |
| MouseClickInZoneRep | Returns TRUE while the given mouse button is held down in the given zone |
| MouseClickOnObjectRep | Returns TRUE while the given mouse button is held down over the given object |
| MouseInZone | Returns TRUE while the mouse is within the given zone |
| MouseOnObject | Returns TRUE while the mouse is oer the given object |
|
| Mouse appearance | |
| SetCursor | Sets the cursor's appearance to the given image / preset |
| HideMousePointer | Hides the mouse pointer |
| ShowMousePointer | Shows the mouse pointer |
| IsMouseVisible | Returns TRUE if the mouse pointer is currently visible |
|
| Keyboard | |
| IsKeyDown | Similar to Keyboard.IsKeyDown but allows more general keys |
| IsCapsLock | Returns TRUE if caps lock is on |
| IsNumLock | Returns TRUE if number lock is on |
| IsScrollLock | Returns TRUE if scroll lock is on |
| IsInsert | Returns TRUE if INSERT is on |
| IsPause | Returns TRUE if PAUSE is on |
| GetKeyState | Returns the current pressed & toggle state of any key |
|
| Callback | |
| OnMouseMove | Called when the mouse moves |
| OnMouseDown | Called when the user presses a mouse button |
| OnMouseUp | Called when the user releases a mouse button |
| OnMouseWheel | Called when the user uses the mouse wheel |
| OnDblClick | Called when the user double clicks |
| OnKeyDown | Called when the user presses a key |
| OnKeyUp | Called when the user releases a key |