Hardware cursor shapes.
typedef enum CursorShape
Arrow.
CURSOR_SHAPE_ARROW,
Insert beam.
CURSOR_SHAPE_IBEAM,
Crosshair.
CURSOR_SHAPE_CROSSHAIR,
Hand.
CURSOR_SHAPE_HAND,
Horzizontal resize.
CURSOR_SHAPE_HRESIZE,
Vertical resize.
CURSOR_SHAPE_VRESIZE
End block 'Cursor shape'
} CursorShape;
Check if key is in a pressed state.
API bool InputIsKey(uint key);
key: Key enum.
returns: True if key is pressed.
Check what modifier keys are in a pressed state using mod key flags. Mod key flags can be or'd together.Pressed mod keys must match the flags exactly.
API bool InputIsModKey(uint modKey);
modKey: Mod key flags, or 0 for any mod key.
returns: Mod key flags.
Check if mouse button is currently in pressed state.
API bool InputIsMseBtn(uint btn);
btn: Button number.
returns: True if button is pressed.
Get position of 3D mouse.
API S3f InputGet3DMsePos();
returns: 3D Position.
Get rotation axis vector of 3D mouse.
API S3f InputGet3DMseRot();
returns: 3D rotation vector.
Get currently pressed 3D mouse button.
API int InputGet3DMseBtn();
returns: Button number, or -1 if no button pressed.
Get mouse position.
API S2i InputGetMsePos();
returns: Position of mouse in screen coordinates.
Get distance in pixels the mouse has moved since last polling.
API S2i InputGetMseMove();
returns: Mouse vector.
Get wheel move amount.
API bool InputGetWheel(S2i *wheel);
wheel: Pointer to wheel variable.
returns: True if wheel event.
Check if mouse button matches next event on queue.Pop event from queue if match.
API bool InputPopMseBtn(uint btn);
btn: Button number.
returns: True if matching mouse button event was found.
Get next mouse button event from queue.Remove event from queue if found.
API bool InputGetMseBtn(uint *btn);
btn: Pointer to variable for storing button number.
returns: True if mouse button event found.
Check if character matches next event on queue.Pop event from queue if match.
API bool InputPopChar(wchar ch);
btn: Character value.
returns: True if matching character event was found.
Get next character event from queue.Remove event from queue if found.
API bool InputGetChar(wchar *ch);
ch: Pointer to variable for storing character.
returns: True if input character event found.
Check if key matches next event on queue.Pop event from queue if match.
API bool InputPopKey(uint key);
btn: Key value.
returns: True if matching key event was found.
Get next key event from queue.Remove key from queue if found.
API bool InputGetKey(uint *key);
key: Pointer to variable for storing key.
returns: True if input key event found.
Get clipboard text.
API void InputGetClipboardText(String *string);
string: String to store text in.
Set clipboard text.
API void InputSetClipboardText(wcstr text);
text: Text.
Set cursor shape.
API void InputSetCursorShape(CursorShape shape);
shape: Cursor shape.
Show/Hide cursor.
API void InputShowCursor(bool show);
show: True to show cursor, false to hide cursor.