summaryrefslogtreecommitdiff
path: root/src/evdev.h
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2011-10-26 13:09:30 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2011-11-11 15:50:36 +1000
commit9411749f76c31a8054ded62a6fb767c8135b4d4e (patch)
treec263455992e7ba25ace32a26fb3965a6a9aa6d5d /src/evdev.h
parent239e972be1f2c6a984dd6c5aecce710d0b866257 (diff)
Replace open_slot/close_slot with a SlotState enum
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src/evdev.h')
-rw-r--r--src/evdev.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/evdev.h b/src/evdev.h
index c588b5d..165aea4 100644
--- a/src/evdev.h
+++ b/src/evdev.h
@@ -100,6 +100,12 @@ enum fkeymode {
FKEYMODE_MMKEYS, /* function keys send multimedia keys */
};
+enum SlotState {
+ SLOTSTATE_OPEN = 8,
+ SLOTSTATE_CLOSE,
+ SLOTSTATE_EMPTY,
+};
+
/* axis specific data for wheel emulation */
typedef struct {
int up_button;
@@ -144,8 +150,7 @@ typedef struct {
#ifdef MULTITOUCH
ValuatorMask *mt_mask;
int cur_slot;
- BOOL close_slot;
- BOOL open_slot;
+ enum SlotState slot_state;
struct mtdev *mtdev;
#endif