Skip to content

GB_key_t

Lior Halphon edited this page Nov 30, 2024 · 3 revisions

Definition

typedef enum {
    GB_KEY_RIGHT,
    GB_KEY_LEFT,
    GB_KEY_UP,
    GB_KEY_DOWN,
    GB_KEY_A,
    GB_KEY_B,
    GB_KEY_SELECT,
    GB_KEY_START,
    GB_KEY_MAX
} GB_key_t;

In joypad.h

Description

An enum representing each of the 8 buttons of a Game Boy, for use with functions such as GB_set_key_state.

See Also

Clone this wiki locally