-
-
Notifications
You must be signed in to change notification settings - Fork 217
GB_key_mask_t
Lior Halphon edited this page Nov 30, 2024
·
3 revisions
typedef enum { GB_KEY_RIGHT_MASK = 1 << GB_KEY_RIGHT, GB_KEY_LEFT_MASK = 1 << GB_KEY_LEFT, GB_KEY_UP_MASK = 1 << GB_KEY_UP, GB_KEY_DOWN_MASK = 1 << GB_KEY_DOWN, GB_KEY_A_MASK = 1 << GB_KEY_A, GB_KEY_B_MASK = 1 << GB_KEY_B, GB_KEY_SELECT_MASK = 1 << GB_KEY_SELECT, GB_KEY_START_MASK = 1 << GB_KEY_START, } GB_key_mask_t;
In joypad.h
An enum representing each of the 8 buttons of a Game Boy as a mask value. Multiple values can be combined with |
and used with functions such as GB_set_key_mask.