gl: clear w, h on reinit
[libpicofe.git] / input.h
diff --git a/input.h b/input.h
index 44ab06b..ba6c15f 100644 (file)
--- 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 */