aboutsummaryrefslogtreecommitdiff
path: root/src/citra
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2017-04-17 22:36:16 -0400
committerGitHub <noreply@github.com>2017-04-17 22:36:16 -0400
commitc5126f51dd625d27996b7e6e14023a647ae12a27 (patch)
tree1c77da816d1ac78721e80ea8a3aec94988a009f9 /src/citra
parent6a72bd62b5f1e88df0d701478d95799a0b445ec4 (diff)
parent4ad82f2e5afb5bb73b19749e010dcef4148443be (diff)
Merge pull request #2667 from wwylele/button_from_axis
input_common/sdl: add support for binding button to axis
Diffstat (limited to 'src/citra')
-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=