|
KallistiOS git master
Independent SDK for the Sega Dreamcast
|
Keyboard key state bit flags More...
Macros | |
| #define | KEY_STATE_IS_DOWN BIT(0) |
| If key is currenty down. | |
| #define | KEY_STATE_WAS_DOWN BIT(1) |
| If key was previously down. | |
| #define | KEY_STATE_MASK (KEY_STATE_IS_DOWN | KEY_STATE_WAS_DOWN) |
| Mask of all key state flags. | |
Keyboard key state bit flags
A key_state_t is a combination of two flags:
KEY_STATE_IS_DOWN: whether the key is currently pressed this frame.KEY_STATE_WAS_DOWN: whether the key was previously pressed last frame.Between these two flags, you can know whether a key state transition event has occurred (when the two flags have different values).
| #define KEY_STATE_IS_DOWN BIT(0) |
If key is currenty down.
| #define KEY_STATE_MASK (KEY_STATE_IS_DOWN | KEY_STATE_WAS_DOWN) |
Mask of all key state flags.
| #define KEY_STATE_WAS_DOWN BIT(1) |
If key was previously down.