Keyboard and Mouse

Function InKey()

Returns the character value of the key that was pressed.


Function Key(key_code)

Returns true if the given key was pressed and false otherwise.


Function WaitKey()

Halts execution of a program until a key is pressed.


Sub HideMouse()

Makes the mouse cursor invisible.


Sub ShowMouse()

Sets the mouse cursor visible.


Function MouseIsVisible()

Returns true if mouse cursor is shown.


Sub GetMouse(byref x, byref y, byref mb1, byref mb2, byref mb3)

Gets the mouse position and button state local to the graphics window.


Function MouseX()

Returns the mouse x position.


Function MouseY()

Returns the mouse y position.


Function MouseButton(mb)

Returns true if mouse button is pressed.


Sub GetMouseWheel(byref x_axis, byref y_axis)

Gets the axis positions of the mouse wheel.


Function MouseWheelX()

Returns the value of the x axis on the mouse wheel.


Function MouseWheelY()

Returns the value of the y axis on the mouse wheel.


Sub GetGlobalMouse(ByRef x, ByRef y, ByRef mb1, ByRef mb2, ByRef mb3)

Gets the global mouse position and button state.


Function GlobalMouseX()

Returns the absolute X position of the mouse on the display.


Function GlobalMouseY()

Returns the absolute Y position of the mouse on the display.


Sub WarpMouse(x, y)

Move the mouse cursor to xy position in the window.


Sub WarpMouseGlobal(x, y)

Move the mouse cursor to xy position in the display.


Sub SetMouseZone(x, y, w, h)

Constrains the mouse to a specified area of the window.


Sub ClearMouseZone()

Removes the previously set mouse zone from the window.