diff options
author | Sven Gothel <[email protected]> | 2012-10-08 01:22:30 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-10-08 01:22:30 +0200 |
commit | d10dae464ef9309a92eb9b49323fe1db93c3fc9f (patch) | |
tree | b80bd2ef759066c7c23fb2e32b0941432ff5954f /src/newt/native/InputEvent.h | |
parent | 630d43be7a8cccf28632fc1f7542bb484382d775 (diff) |
Raise NEWT MouseButton Maximum from 6 -> 16 (API Change)
- Button 9 has been reported to be sent by Olamedia
- Rearrange the input bit mask in InputEvent (API Change)
- Raise the max. button number to 16
Diffstat (limited to 'src/newt/native/InputEvent.h')
-rw-r--r-- | src/newt/native/InputEvent.h | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/src/newt/native/InputEvent.h b/src/newt/native/InputEvent.h index 51c56c474..3fa7dbefe 100644 --- a/src/newt/native/InputEvent.h +++ b/src/newt/native/InputEvent.h @@ -38,15 +38,20 @@ #define EVENT_CTRL_MASK (1 << 1) #define EVENT_META_MASK (1 << 2) #define EVENT_ALT_MASK (1 << 3) -#define EVENT_ALT_GRAPH_MASK (1 << 5) -#define EVENT_BUTTON1_MASK (1 << 6) -#define EVENT_BUTTON2_MASK (1 << 7) -#define EVENT_BUTTON3_MASK (1 << 8) -#define EVENT_BUTTON4_MASK (1 << 9) -#define EVENT_BUTTON5_MASK (1 << 10) -#define EVENT_BUTTON6_MASK (1 << 11) -#define EVENT_AUTOREPEAT_MASK (1 << 15) -#define EVENT_CONFINED_MASK (1 << 16) -#define EVENT_INVISIBLE_MASK (1 << 17) +#define EVENT_ALT_GRAPH_MASK (1 << 4) + +#define EVENT_BUTTON1_MASK (1 << 5) +#define EVENT_BUTTON2_MASK (1 << 6) +#define EVENT_BUTTON3_MASK (1 << 7) +#define EVENT_BUTTON4_MASK (1 << 8) +#define EVENT_BUTTON5_MASK (1 << 9) +#define EVENT_BUTTON6_MASK (1 << 10) +#define EVENT_BUTTON7_MASK (1 << 11) +#define EVENT_BUTTON8_MASK (1 << 12) +#define EVENT_BUTTON9_MASK (1 << 13) + +#define EVENT_AUTOREPEAT_MASK (1 << 29) +#define EVENT_CONFINED_MASK (1 << 30) +#define EVENT_INVISIBLE_MASK (1 << 31) #endif |