summaryrefslogtreecommitdiff
path: root/core/os
diff options
context:
space:
mode:
authorpunto- <ariel@godotengine.org>2016-01-02 00:24:16 -0300
committerpunto- <ariel@godotengine.org>2016-01-02 00:24:16 -0300
commit59143847f7e3f224670946dbdc79b5b7786fb95b (patch)
treea5b9731ba9edd9eba0879910abfcc61fe226491f /core/os
parent2cc2524329dcb512042e5b294407b97ed05a11d7 (diff)
parentc60e1648ba17489d5c762dcbe42d2019e540b0b9 (diff)
Merge pull request #3192 from Hinsbart/trigger-as-axis
Analog values for gamepad triggers, using axes 6 & 7.
Diffstat (limited to 'core/os')
-rw-r--r--core/os/input_event.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/os/input_event.h b/core/os/input_event.h
index 12980e2a15..b601adc875 100644
--- a/core/os/input_event.h
+++ b/core/os/input_event.h
@@ -143,6 +143,9 @@ enum {
JOY_ANALOG_2_X = JOY_AXIS_4,
JOY_ANALOG_2_Y = JOY_AXIS_5,
+
+ JOY_ANALOG_L2 = JOY_AXIS_6,
+ JOY_ANALOG_R2 = JOY_AXIS_7,
};