summaryrefslogtreecommitdiff
path: root/src/citra/default_ini.h
diff options
context:
space:
mode:
authorwwylele <wwylele@gmail.com>2017-04-17 11:49:04 +0300
committerwwylele <wwylele@gmail.com>2017-04-17 14:14:35 +0300
commit4ad82f2e5afb5bb73b19749e010dcef4148443be (patch)
tree1c77da816d1ac78721e80ea8a3aec94988a009f9 /src/citra/default_ini.h
parent6a72bd62b5f1e88df0d701478d95799a0b445ec4 (diff)
input_common/sdl: add support for binding button to axis
Diffstat (limited to 'src/citra/default_ini.h')
-rw-r--r--src/citra/default_ini.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/citra/default_ini.h b/src/citra/default_ini.h
index 084372df4..d8a8fe44f 100644
--- a/src/citra/default_ini.h
+++ b/src/citra/default_ini.h
@@ -19,7 +19,13 @@ const char* sdl2_config_file = R"(
# - "joystick": the index of the joystick to bind
# - "button"(optional): the index of the button to bind
# - "hat"(optional): the index of the hat to bind as direction buttons
+# - "axis"(optional): the index of the axis to bind
# - "direction"(only used for hat): the direction name of the hat to bind. Can be "up", "down", "left" or "right"
+# - "threshould"(only used for axis): a float value in (-1.0, 1.0) which the button is
+# triggered if the axis value crosses
+# - "direction"(only used for axis): "+" means the button is triggered when the axis value
+# is greater than the threshold; "-" means the button is triggered when the axis value
+# is smaller than the threshold
button_a=
button_b=
button_x=