From 9411749f76c31a8054ded62a6fb767c8135b4d4e Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 26 Oct 2011 13:09:30 +1000 Subject: Replace open_slot/close_slot with a SlotState enum Signed-off-by: Peter Hutterer --- src/evdev.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/evdev.h') 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 -- cgit v1.2.3