readpnd: teach to writepng too (todo: rename?)
[libpicofe.git] / common / input.h
index 4f4bfbc..a64b637 100644 (file)
@@ -1,3 +1,6 @@
+#ifndef INCLUDE_uXt8Z4R7EMpuEEtvSibXjNhKH3741VNc
+#define INCLUDE_uXt8Z4R7EMpuEEtvSibXjNhKH3741VNc 1
+
 #define IN_MAX_DEVS 10
 
 /* unified menu keys */
@@ -87,6 +90,11 @@ typedef struct {
        const char * (*get_key_name)(int keycode);
 } in_drv_t;
 
+struct in_default_bind {
+       unsigned short code;
+       unsigned char btype;    /* IN_BINDTYPE_* */
+       unsigned char bit;
+};
 
 /* to be called by drivers */
 void in_register(const char *nname, int drv_id, int drv_fd_hnd, void *drv_data,
@@ -121,3 +129,5 @@ const char *in_get_key_name(int dev_id, int keycode);
        int val_ = v; \
        in_set_config(dev_id, what, &val_, sizeof(val_)); \
 }
+
+#endif /* INCLUDE_uXt8Z4R7EMpuEEtvSibXjNhKH3741VNc */