Use the Joystick interface for game controller input. (#737)

* switch gamepad input to joystick

* fix style nits

* modify config.md to reflect new changes
This commit is contained in:
emmauss
2019-08-05 21:58:27 +03:00
committed by Ac_K
parent 54b79dffa8
commit 1ba58e9942
6 changed files with 239 additions and 219 deletions

View File

@@ -107,7 +107,7 @@
},
// Controller Controls
"gamepad_controls": {
"joystick_controls": {
// Whether or not to enable Controller support
"enabled": true,
@@ -122,28 +122,28 @@
// Left JoyCon Controller Bindings
"left_joycon": {
"stick": "LJoystick",
"stick_button": "LStick",
"dpad_up": "DPadUp",
"dpad_down": "DPadDown",
"dpad_left": "DPadLeft",
"dpad_right": "DPadRight",
"button_minus": "Back",
"button_l": "LShoulder",
"button_zl": "LTrigger"
"stick": "Axis0",
"stick_button": "Button13",
"dpad_up": "Hat0Up",
"dpad_down": "Hat0Down",
"dpad_left": "Hat0Left",
"dpad_right": "Hat0Right",
"button_minus": "Button10",
"button_l": "Button6",
"button_zl": "Button8"
},
// Right JoyCon Controller Bindings
"right_joycon": {
"stick": "RJoystick",
"stick_button": "RStick",
"button_a": "B",
"button_b": "A",
"button_x": "Y",
"button_y": "X",
"button_plus": "Start",
"button_r": "RShoulder",
"button_zr": "RTrigger"
"stick": "Axis2",
"stick_button": "Button14",
"button_a": "Button0",
"button_b": "Button1",
"button_x": "Button3",
"button_y": "Button4",
"button_plus": "Button11",
"button_r": "Button7",
"button_zr": "Button9"
}
}
}