summaryrefslogtreecommitdiffstats
path: root/core/os/input_event.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2019-06-13 17:41:33 +0200
committerGitHub <noreply@github.com>2019-06-13 17:41:33 +0200
commit48fb3debf66af3bb3e6bea5be10c3178f2861d85 (patch)
treea5479e6cdf4ea4e9aad0b65435a8984df514a735 /core/os/input_event.h
parent933dd1cbe273f11e1ca02b5dc62b182b27934414 (diff)
parenta9581d2b3f05506e4fc6f3e3571147b4922fc417 (diff)
downloadredot-engine-48fb3debf66af3bb3e6bea5be10c3178f2861d85.tar.gz
Merge pull request #29754 from BastiaanOlij/vr_button_mapping
Added constants for the main buttons and axis used in VR
Diffstat (limited to 'core/os/input_event.h')
-rw-r--r--core/os/input_event.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/core/os/input_event.h b/core/os/input_event.h
index 7a9a1f71c3..2eb321f134 100644
--- a/core/os/input_event.h
+++ b/core/os/input_event.h
@@ -117,6 +117,16 @@ enum JoystickList {
JOY_WII_MINUS = JOY_BUTTON_10,
JOY_WII_PLUS = JOY_BUTTON_11,
+ JOY_VR_GRIP = JOY_BUTTON_2,
+ JOY_VR_PAD = JOY_BUTTON_14,
+ JOY_VR_TRIGGER = JOY_BUTTON_15,
+
+ JOY_OCULUS_AX = JOY_BUTTON_7,
+ JOY_OCULUS_BY = JOY_BUTTON_1,
+ JOY_OCULUS_MENU = JOY_BUTTON_3,
+
+ JOY_OPENVR_MENU = JOY_BUTTON_1,
+
// end of history
JOY_AXIS_0 = 0,
@@ -139,6 +149,12 @@ enum JoystickList {
JOY_ANALOG_L2 = JOY_AXIS_6,
JOY_ANALOG_R2 = JOY_AXIS_7,
+
+ JOY_VR_ANALOG_TRIGGER = JOY_AXIS_2,
+ JOY_VR_ANALOG_GRIP = JOY_AXIS_4,
+
+ JOY_OPENVR_TOUCHPADX = JOY_AXIS_0,
+ JOY_OPENVR_TOUCHPADY = JOY_AXIS_1,
};
enum MidiMessageList {