natiny_input_get_mouse_button_down
bool natiny_input_get_mouse_button_down(uint32_t button);
Returns true if the specified mouse button is currently held down.
Parameters
| Name | Type | Description |
|---|---|---|
button |
uint32_t |
Mouse button - a NATINY_INPUT_MOUSE_BUTTON_* constant |
Returns
| Type | Description |
|---|---|
bool |
true if the button is held, false otherwise |
Example
if (natiny_input_get_mouse_button_down(NATINY_INPUT_MOUSE_BUTTON_LEFT))
drag();
Notes
- Returns
trueevery frame while the button remains held.