summaryrefslogtreecommitdiffstats
path: root/core/os/input_event.h
diff options
context:
space:
mode:
authorunknown <40793342+moiman100@users.noreply.github.com>2018-07-05 17:50:30 +0300
committerunknown <40793342+moiman100@users.noreply.github.com>2018-07-09 14:34:19 +0300
commit9cc41a59ac579b3676a832ebc4f1c865413897ce (patch)
treea25e16f72482be89fe7709a8ab066055253e5dba /core/os/input_event.h
parent4d9fde944e331e5502083db5ca6f86a304e6630b (diff)
downloadredot-engine-9cc41a59ac579b3676a832ebc4f1c865413897ce.tar.gz
Added support for extra mouse buttons.
Diffstat (limited to 'core/os/input_event.h')
-rw-r--r--core/os/input_event.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/os/input_event.h b/core/os/input_event.h
index 037649ed60..bd1a85ce29 100644
--- a/core/os/input_event.h
+++ b/core/os/input_event.h
@@ -53,10 +53,13 @@ enum ButtonList {
BUTTON_WHEEL_DOWN = 5,
BUTTON_WHEEL_LEFT = 6,
BUTTON_WHEEL_RIGHT = 7,
+ BUTTON_XBUTTON1 = 8,
+ BUTTON_XBUTTON2 = 9,
BUTTON_MASK_LEFT = (1 << (BUTTON_LEFT - 1)),
BUTTON_MASK_RIGHT = (1 << (BUTTON_RIGHT - 1)),
BUTTON_MASK_MIDDLE = (1 << (BUTTON_MIDDLE - 1)),
-
+ BUTTON_MASK_XBUTTON1 = (1 << (BUTTON_XBUTTON1 - 1)),
+ BUTTON_MASK_XBUTTON2 = (1 << (BUTTON_XBUTTON2 - 1))
};
enum JoystickList {