summaryrefslogtreecommitdiff
path: root/src/jstk.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/jstk.h')
-rw-r--r--src/jstk.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/jstk.h b/src/jstk.h
index 2a9ca51..c6029ec 100644
--- a/src/jstk.h
+++ b/src/jstk.h
@@ -111,9 +111,16 @@ typedef struct _JoystickDevRec {
Bool mouse_enabled, keys_enabled;
float amplify; /* Global amplifier of axis movement */
- int buttonmap_size;
- CARD8 scrollbuttonmap[4]; /* Logical button numbers for scrollwheel */
- CARD8 buttonmap[MAXBUTTONS+1];
+ struct _BUTTONMAP {
+ int size;
+ CARD8 scrollbutton[4]; /* Logical button numbers for scrollwheel */
+ CARD8 map[MAXBUTTONS+1];
+ } buttonmap;
+ struct _KEYMAP {
+ int size;
+ KeySym map[MAXBUTTONS+1];
+ } keymap;
+
AXIS axis[MAXAXES]; /* Configuration per axis */
BUTTON button[MAXBUTTONS]; /* Configuration per button */
} JoystickDevRec, *JoystickDevPtr;