MouseKeyboard
MouseKeyboard

The mousekeyboard object lets you interact easily with the mouse and keyboard.

Creation
 
MouseKeyboardCreates a new MouseKeyboard object
Functions
 
Mouse position
GetXMouseReturns the X position of the mouse relative to the frame
GetYMouseReturns the Y position of the mouse relative to the frame
SetXMouseSets the X position of the mouse relative to the frame
SetYMouseSets the Y position of the mouse relative to the frame
SetMousePosSets the X & Y position of the mouse relative to the frame
GetGUIXMouseReturns the X position of the mouse relative to the gui
GetGUIYMouseReturns the Y position of the mouse relative to the gui
GetWindowXMouseReturns the X position of the mouse relative to the window
GetWindowYMouseReturns the Y position of the mouse relative to the window
SetWindowXMouseSets the X position of the mouse relative to the window
SetWindowYMouseSets the Y position of the mouse relative to the window
SetWindowMousePosSets the X & Y position of the mouse relative to the window
GetScreenXMouseReturns the X position of the mouse relative to the screen
GetScreenYMouseReturns the Y position of the mouse relative to the screen
SetScreenXMouseSets the X position of the mouse relative to the screen
SetScreenYMouseSets the Y position of the mouse relative to the screen
SetScreenMousePosSets the X & Y position of the mouse relative to the screen
ObjectUnderMouseReturns the topmost object currently under the mouse pointer
MouseIsLeftChecks if the mouse is within a given number of pixels from the left edge of the window
MouseIsRightChecks if the mouse is within a given number of pixels from the right edge of the window
MouseIsUpChecks if the mouse is within a given number of pixels from the top edge of the window
MouseIsDownChecks if the mouse is within a given number of pixels from the bottom edge of the window
Mouse buttons
MouseClickReturns TRUE if the given mouse button was pressed during the current frame
MouseClickInZoneReturns TRUE if the given mouse button was pressed during the current frame in the given zone
MouseClickOnObjectReturns TRUE if the given mouse button was pressed during the current frame while over the given object
MouseClickRepReturns TRUE while the given mouse button is held down
MouseClickInZoneRepReturns TRUE while the given mouse button is held down in the given zone
MouseClickOnObjectRepReturns TRUE while the given mouse button is held down over the given object
MouseInZoneReturns TRUE while the mouse is within the given zone
MouseOnObjectReturns TRUE while the mouse is oer the given object
Mouse appearance
SetCursorSets the cursor's appearance to the given image / preset
HideMousePointerHides the mouse pointer
ShowMousePointerShows the mouse pointer
IsMouseVisibleReturns TRUE if the mouse pointer is currently visible
Keyboard
IsKeyDownSimilar to Keyboard.IsKeyDown but allows more general keys
IsCapsLockReturns TRUE if caps lock is on
IsNumLockReturns TRUE if number lock is on
IsScrollLockReturns TRUE if scroll lock is on
IsInsertReturns TRUE if INSERT is on
IsPauseReturns TRUE if PAUSE is on
GetKeyStateReturns the current pressed & toggle state of any key
Callback
OnMouseMoveCalled when the mouse moves
OnMouseDownCalled when the user presses a mouse button
OnMouseUpCalled when the user releases a mouse button
OnMouseWheelCalled when the user uses the mouse wheel
OnDblClickCalled when the user double clicks
OnKeyDownCalled when the user presses a key
OnKeyUpCalled when the user releases a key



JAM © 2005 no one in partiular
Project started by David Evans in 2005