Crate nstd_input

Source

Modules§

key
mouse
touch

Functions§

nstd_input_is_key_down
Checks if a key is down. Parameters: const NSTDRawInput raw_input - Raw input handle. const NSTDKey key - The key to check. Returns: int is_down - 1 if the key is down, 0 otherwise.
nstd_input_is_key_up
Checks if a key is up. Parameters: const NSTDRawInput raw_input - Raw input handle. const NSTDKey key - The key to check. Returns: int is_up - 1 if the key is up, 0 otherwise.
nstd_input_is_mouse_down
Checks if a mouse button is down. Parameters: const NSTDRawInput raw_input - Raw input handle. const NSTDMouseButton button - The mouse button to check. Returns: int is_down - 1 if the mouse button is up, 0 otherwise.
nstd_input_is_mouse_up
Checks if a mouse button is up. Parameters: const NSTDRawInput raw_input - Raw input handle. const NSTDMouseButton button - The mouse button to check. Returns: int is_up - 1 if the mouse button is up, 0 otherwise.

Type Aliases§

NSTDRawInput
A raw input handle.