You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
bomberclone/include/keyb.h

39 lines
593 B

/* $:ID $
* keyboard handling */
enum _bcplayerkeys {
BCPK_up = 0,
BCPK_down,
BCPK_left,
BCPK_right,
BCPK_special,
BCPK_drop,
BCPK_max
};
enum _bckeys {
BCK_help = BCPK_max * 2,
BCK_esc,
BCK_fullscreen,
BCK_chat,
BCK_pause,
BCK_playermenu,
BCK_mapmenu,
BCK_max
};
struct {
Uint8 state [BCK_max]; // current state
Uint8 old [BCK_max]; // old state
int keycode [BCK_max]; // keycode
} typedef BCGameKeys;
extern BCGameKeys keyb_gamekeys;
extern void keyb_config ();
extern void keyb_configreset ();
extern void keyb_init ();
extern void keyb_loop (SDL_Event *event);