X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=libpicofe.git;a=blobdiff_plain;f=input.h;h=360b65bb4e090a3cae1d0590ae08a18f3b538dae;hp=44ab06bfa513416ae883b4cc422c7b4701131839;hb=HEAD;hpb=c19e28f62660cdaed26698234cff9c084517b34c diff --git a/input.h b/input.h index 44ab06b..ba6c15f 100644 --- a/input.h +++ b/input.h @@ -21,6 +21,7 @@ #define PBTN_MENU (1 << 10) #define PBTN_CHAR (1 << 11) /* character (text input) */ +#define PBTN_RDRAW (1 << 12) /* redraw event */ // TODO: move to pico #if 0 @@ -70,6 +71,7 @@ enum { IN_BINDTYPE_NONE = -1, IN_BINDTYPE_EMU = 0, IN_BINDTYPE_PLAYER12, + IN_BINDTYPE_PLAYER34, IN_BINDTYPE_COUNT }; @@ -83,7 +85,7 @@ struct InputDriver { void (*probe)(const in_drv_t *drv); void (*free)(void *drv_data); const char * const * - (*get_key_names)(int *count); + (*get_key_names)(const in_drv_t *drv, int *count); int (*clean_binds)(void *drv_data, int *binds, int *def_finds); int (*get_config)(void *drv_data, int what, int *val); int (*set_config)(void *drv_data, int what, int val); @@ -116,6 +118,7 @@ struct in_pdata { size_t kmap_size; const struct menu_keymap *joy_map; size_t jmap_size; + const char * const *key_names; }; /* to be called by drivers */