natiny_input_get_mouse_button_released
bool natiny_input_get_mouse_button_released(uint32_t button);
Returns true only on the frame when the specified mouse button was released.
Parameters
| Name | Type | Description |
|---|---|---|
button |
uint32_t |
Mouse button - a NATINY_INPUT_MOUSE_BUTTON_* constant |
Returns
| Type | Description |
|---|---|
bool |
true on the frame the button was released, false otherwise |
Example
if (natiny_input_get_mouse_button_released(NATINY_INPUT_MOUSE_BUTTON_LEFT))
finish_drag();
Notes
- Returns
truefor the frame that consumes a pressed-to-released transition.