Used to add input to the engine
HID context handle
gamepad context handle
mouse context handle
keyboard context handle
touch device context handle
invalid gamepad handle
invalid keyboard handle
invalid mouse handle
invalid touch devicehandle
Maximum number of gamepads supported
Maximum number of gamepad axis supported
Maximum number of gamepad buttons supported
Maximum number of gamepad hats supported
Maximum number of simultaneous touches supported
Maximum number of keyboards supported
Maximum number of mice supported
Maximum number of touch devices supported
max number of characters
touch phase enumeration
dmHID::PHASE_BEGAN -
dmHID::PHASE_MOVED -
dmHID::PHASE_STATIONARY -
dmHID::PHASE_ENDED -
dmHID::PHASE_CANCELLED -
keyboard key enumeration
dmHID::KEY_SPACE -
dmHID::KEY_EXCLAIM -
dmHID::KEY_QUOTEDBL -
dmHID::KEY_HASH -
dmHID::KEY_DOLLAR -
dmHID::KEY_AMPERSAND -
dmHID::KEY_QUOTE -
dmHID::KEY_LPAREN -
dmHID::KEY_RPAREN -
dmHID::KEY_ASTERISK -
dmHID::KEY_PLUS -
dmHID::KEY_COMMA -
dmHID::KEY_MINUS -
dmHID::KEY_PERIOD -
dmHID::KEY_SLASH -
dmHID::KEY_0 -
dmHID::KEY_1 -
dmHID::KEY_2 -
dmHID::KEY_3 -
dmHID::KEY_4 -
dmHID::KEY_5 -
dmHID::KEY_6 -
dmHID::KEY_7 -
dmHID::KEY_8 -
dmHID::KEY_9 -
dmHID::KEY_COLON -
dmHID::KEY_SEMICOLON -
dmHID::KEY_LESS -
dmHID::KEY_EQUALS -
dmHID::KEY_GREATER -
dmHID::KEY_QUESTION -
dmHID::KEY_AT -
dmHID::KEY_A -
dmHID::KEY_B -
dmHID::KEY_C -
dmHID::KEY_D -
dmHID::KEY_E -
dmHID::KEY_F -
dmHID::KEY_G -
dmHID::KEY_H -
dmHID::KEY_I -
dmHID::KEY_J -
dmHID::KEY_K -
dmHID::KEY_L -
dmHID::KEY_M -
dmHID::KEY_N -
dmHID::KEY_O -
dmHID::KEY_P -
dmHID::KEY_Q -
dmHID::KEY_R -
dmHID::KEY_S -
dmHID::KEY_T -
dmHID::KEY_U -
dmHID::KEY_V -
dmHID::KEY_W -
dmHID::KEY_X -
dmHID::KEY_Y -
dmHID::KEY_Z -
dmHID::KEY_LBRACKET -
dmHID::KEY_BACKSLASH -
dmHID::KEY_RBRACKET -
dmHID::KEY_CARET -
dmHID::KEY_UNDERSCORE -
dmHID::KEY_BACKQUOTE -
dmHID::KEY_LBRACE -
dmHID::KEY_PIPE -
dmHID::KEY_RBRACE -
dmHID::KEY_TILDE -
dmHID::KEY_ESC -
dmHID::KEY_F1 -
dmHID::KEY_F2 -
dmHID::KEY_F3 -
dmHID::KEY_F4 -
dmHID::KEY_F5 -
dmHID::KEY_F6 -
dmHID::KEY_F7 -
dmHID::KEY_F8 -
dmHID::KEY_F9 -
dmHID::KEY_F10 -
dmHID::KEY_F11 -
dmHID::KEY_F12 -
dmHID::KEY_UP -
dmHID::KEY_DOWN -
dmHID::KEY_LEFT -
dmHID::KEY_RIGHT -
dmHID::KEY_LSHIFT -
dmHID::KEY_RSHIFT -
dmHID::KEY_LCTRL -
dmHID::KEY_RCTRL -
dmHID::KEY_LALT -
dmHID::KEY_RALT -
dmHID::KEY_TAB -
dmHID::KEY_ENTER -
dmHID::KEY_BACKSPACE -
dmHID::KEY_INSERT -
dmHID::KEY_DEL -
dmHID::KEY_PAGEUP -
dmHID::KEY_PAGEDOWN -
dmHID::KEY_HOME -
dmHID::KEY_END -
dmHID::KEY_KP_0 -
dmHID::KEY_KP_1 -
dmHID::KEY_KP_2 -
dmHID::KEY_KP_3 -
dmHID::KEY_KP_4 -
dmHID::KEY_KP_5 -
dmHID::KEY_KP_6 -
dmHID::KEY_KP_7 -
dmHID::KEY_KP_8 -
dmHID::KEY_KP_9 -
dmHID::KEY_KP_DIVIDE -
dmHID::KEY_KP_MULTIPLY -
dmHID::KEY_KP_SUBTRACT -
dmHID::KEY_KP_ADD -
dmHID::KEY_KP_DECIMAL -
dmHID::KEY_KP_EQUAL -
dmHID::KEY_KP_ENTER -
dmHID::KEY_KP_NUM_LOCK -
dmHID::KEY_CAPS_LOCK -
dmHID::KEY_SCROLL_LOCK -
dmHID::KEY_PAUSE -
dmHID::KEY_LSUPER -
dmHID::KEY_RSUPER -
dmHID::KEY_MENU -
dmHID::KEY_BACK -
dmHID::MAX_KEY_COUNT -
mouse button enumeration
dmHID::MOUSE_BUTTON_LEFT -
dmHID::MOUSE_BUTTON_MIDDLE -
dmHID::MOUSE_BUTTON_RIGHT -
dmHID::MOUSE_BUTTON_1 -
dmHID::MOUSE_BUTTON_2 -
dmHID::MOUSE_BUTTON_3 -
dmHID::MOUSE_BUTTON_4 -
dmHID::MOUSE_BUTTON_5 -
dmHID::MOUSE_BUTTON_6 -
dmHID::MOUSE_BUTTON_7 -
dmHID::MOUSE_BUTTON_8 -
dmHID::MAX_MOUSE_BUTTON_COUNT -
Contains the current state of a keyboard
Contains the current state of a mouse
Contains the current state of a gamepad
Data for a single touch, e.g. finger
m_TapCount - Single-click, double, etc
m_Phase - Begin, end, etc
m_X - Current x
m_Y - Current y
m_ScreenX - Current x, in screen space
m_ScreenY - Current y, in screen space
m_DX - Current dx
m_DY - Current dy
m_ScreenDX - Current dx, in screen space
m_ScreenDY - Current dy, in screen space
m_Id - Touch id
gets a keyboard handle
context - context in which to find the gamepad
index - device index
keyboard - Handle to keyboard. dmHID::INVALID_KEYBOARD_HANDLE if not available
gets a mouse handle
context - context in which to find the gamepad
index - device index
mouse - Handle to mouse. dmHID::INVALID_MOUSE_HANDLE if not available
gets a touch device handle
context - context in which to find the gamepad
index - device index
device - Handle to touch device. dmHID::INVALID_TOUCH_DEVICE_HANDLE if not available
gets a gamepad device handle
context - context in which to find the gamepad
index - device index
gamepad - Handle to gamepad. dmHID::INVALID_GAMEPAD_HANDLE if not available
gets a gamepad device handle
gamepad - Handle to gamepad
out - Platform specific user id data
result - true if gamepad has a user id data assigned to it
Adds a touch event touch.
device - device handle
x - x-coordinate of the position
y - y-coordinate of the position
id - identifier of touch
phase - phase of touch
Sets the state of a gamepad button.
gamepad - device handle
button - The requested button [0, dmHID::MAX_GAMEPAD_BUTTON_COUNT)
value - Button state
Sets the state of a gamepad axis.
gamepad - device handle
axis - The requested axis [0, dmHID::MAX_GAMEPAD_AXIS_COUNT)
value - axis value [-1, 1]
Sets the state of a mouse button.
mouse - device handle
button - The requested button
value - Button state
Sets the position of a mouse.
mouse - device handle
x - x-coordinate of the position
y - y-coordinate of the position
Sets the mouse wheel.
mouse - device handle
value - wheel value
Obtain a mouse packet reflecting the current input state of a HID context.
mouse - context from which to retrieve the packet
out_packet - Mouse packet out argument
result - If the packet was successfully updated or not.
Convenience function to retrieve the state of a mouse button from a mouse packet.
packet - Mouse packet
button - The requested button
result - If the button was pressed or not
Sets the state of a key.
keyboard - context handle
key - The requested key
value - Key state
Add text input
keyboard - context handle
chr - The character (unicode)