Skip to content

Commit

Permalink
Adds mapping for wired 360 pad on Linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
NoobsArePeople2 committed Jan 16, 2014
1 parent 9f56edc commit 5f45f2e
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions mappings/linux/microsoft-x-box-360-pad.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"desc": "SFML Button mappings for the XBox 360 controller on Linux (Ubunut).",

"contributor": {
"name": "Sean Monahan",
"email": "hello@seanmonahan.org"
},

"buttons": {

"A": 0,
"B": 1,
"X": 2,
"Y": 3,
"LB": 4,
"RB": 5,
"Back": 6,
"Start": 7,
"Left Stick Press": 9,
"Right Stick Press": 10,
"Guide": 8

},

"axes": {

"_note_format": "X axes are described in the following format: 'Axis Name: min-value,max-value.",
"_note_sticks": "Using the format described on the horizontal axis, min-value corresponds with left, max-value with right. On the vertical axis, min-value with up, max-value with down.",
"_note_triggers": "Using the format described with triggers, min-value corresponds with the trigger being fully released (not pressed at all) and max-value with the trigger fully pressed.",

"Left Stick Horizontal": "X-axis: -100,100",
"Left Stick Vertical": "Y-axis: -100,100",
"Right Stick Horizontal": "U-axis: -100,100",
"Right Stick Vertical": "V-axis: -100,100",

"_note_360_triggers": "On the 360 pad the triggers share an axis, making it impossble to use both effectively. This is a limitation of DirectInput not SFML.",
"Left Trigger": "Z-axis: -100,100",
"Right Tigger": "R-axis: -100,-100",

"_note_dpad": "Though they are digital buttons, the D-Pad is mapped to the PovX and PovY axes.",
"D-Pad Up": "PovY: 0,-100",
"D-Pad Right": "PovX: 0,100",
"D-Pad Down": "PovY: 0,100",
"D-Pad Left": "PovX: 0,-100"
}

}

0 comments on commit 5f45f2e

Please sign in to comment.