|
@@ -1,39 +1,69 @@
|
|
|
{
|
|
|
"name": "Xbox Controller",
|
|
|
- "idmatcher": "XInput.*",
|
|
|
+ "idmatcher": "XInput.*|XBOX360.*|.*360.*Controller",
|
|
|
"mapping":
|
|
|
{
|
|
|
- // left stick L,R,U,D, click
|
|
|
- "KEY_AXIS_0_VAL_DOWN": "",
|
|
|
- "KEY_AXIS_0_VAL_UP": "",
|
|
|
- "KEY_AXIS_1_VAL_DOWN": "",
|
|
|
- "KEY_AXIS_1_VAL_UP": "",
|
|
|
- "KEY_BUTTON_6": "",
|
|
|
- // right stick L,R,U,D, click
|
|
|
- "KEY_AXIS_2_VAL_DOWN": "host:player:add volume -1",
|
|
|
- "KEY_AXIS_2_VAL_UP": "host:player:add volume 1",
|
|
|
- "KEY_AXIS_3_VAL_DOWN": "host:player:add volume 1",
|
|
|
- "KEY_AXIS_3_VAL_UP": "host:player:add volume -1",
|
|
|
- "KEY_BUTTON_7": "host:player:cycle mute",
|
|
|
- // DPAD U,D,L,R
|
|
|
- "KEY_BUTTON_0": "up",
|
|
|
- "KEY_BUTTON_1": "down",
|
|
|
- "KEY_BUTTON_2": "left",
|
|
|
- "KEY_BUTTON_3": "right",
|
|
|
- // BACK, HOME, START
|
|
|
- "KEY_BUTTON_5": "host:fullscreen",
|
|
|
- "KEY_BUTTON_14": "host:toggleDebug",
|
|
|
- "KEY_BUTTON_4": "home",
|
|
|
- // LB, LT
|
|
|
- "KEY_BUTTON_8": "host:player:seek -15",
|
|
|
- "KEY_AXIS_4_VAL_DOWN": "",
|
|
|
- // RB, RT
|
|
|
- "KEY_BUTTON_9": "host:player:seek 15",
|
|
|
- "KEY_AXIS_4_VAL_DOWN": "",
|
|
|
- // A, B, X, Y
|
|
|
- "KEY_BUTTON_10": "enter",
|
|
|
- "KEY_BUTTON_11": "back",
|
|
|
- "KEY_BUTTON_12": "cycle_subtitles",
|
|
|
- "KEY_BUTTON_13": "host:player:cycle mute"
|
|
|
+ // A
|
|
|
+ "KEY_BUTTON_0": "enter",
|
|
|
+
|
|
|
+ // B
|
|
|
+ "KEY_BUTTON_1": {
|
|
|
+ "short": "back",
|
|
|
+ "long": "home"
|
|
|
+ },
|
|
|
+
|
|
|
+ // X
|
|
|
+ "KEY_BUTTON_2": "cycle_audio",
|
|
|
+
|
|
|
+ // Y
|
|
|
+ "KEY_BUTTON_3": "cycle_subtitle",
|
|
|
+
|
|
|
+ // LB
|
|
|
+ "KEY_BUTTON_4": "seek_backward",
|
|
|
+
|
|
|
+ // RB
|
|
|
+ "KEY_BUTTON_5": "seek_forward",
|
|
|
+
|
|
|
+ // left thumbstick press
|
|
|
+ "KEY_BUTTON_6": "",
|
|
|
+
|
|
|
+ // right thumbstick press
|
|
|
+ "KEY_BUTTON_7": "",
|
|
|
+
|
|
|
+ // start
|
|
|
+ "KEY_BUTTON_8": "host:fullscreen",
|
|
|
+
|
|
|
+ // back
|
|
|
+ "KEY_BUTTON_9": "host:toggleDebug",
|
|
|
+
|
|
|
+ // Windows button
|
|
|
+ "KEY_BUTTON_10": {
|
|
|
+ "short": "home",
|
|
|
+ "long": "exit"
|
|
|
+ },
|
|
|
+
|
|
|
+ // D-PAD
|
|
|
+ "KEY_BUTTON_11": "up",
|
|
|
+ "KEY_BUTTON_12": "down",
|
|
|
+ "KEY_BUTTON_13": "left",
|
|
|
+ "KEY_BUTTON_14": "right",
|
|
|
+
|
|
|
+ // left thumbstick axis
|
|
|
+ "KEY_AXIS_0_UP": "left",
|
|
|
+ "KEY_AXIS_0_DOWN": "right",
|
|
|
+ "KEY_AXIS_1_UP": "up",
|
|
|
+ "KEY_AXIS_1_DOWN": "down",
|
|
|
+
|
|
|
+ // right thumbstick axis
|
|
|
+ "KEY_AXIS_4_UP": "increase_volume",
|
|
|
+ "KEY_AXIS_4_DOWN": "decrease_volume",
|
|
|
+ "KEY_AXIS_3_UP": "decrease_audio_delay",
|
|
|
+ "KEY_AXIS_3_DOWN": "increase_audio_delay",
|
|
|
+
|
|
|
+ // left trigger
|
|
|
+ "KEY_AXIS_2_UP": "",
|
|
|
+
|
|
|
+ // right trigger
|
|
|
+ "KEY_AXIS_5_UP": ""
|
|
|
}
|
|
|
-}
|
|
|
+}
|