html5-gamepad icon indicating copy to clipboard operation
html5-gamepad copied to clipboard

Mapping for 54c-5c4-Wireless Controller Safari Mac OS X

Open Ithamar opened this issue 7 years ago • 0 comments

Please include this mapping:

{
  "axes": {
    "dpad x": {
      "index": 6
    },
    "dpad y": {
      "index": 7
    },
    "left stick x": {
      "index": 0
    },
    "left stick y": {
      "index": 1
    },
    "right stick y": {
      "index": 3
    },
    "right stick x": {
      "index": 2
    }
  },
  "buttons": {
    "b": {
      "index": 2
    },
    "back": {
      "index": 8
    },
    "dpad down": {
      "index": 15
    },
    "dpad left": {
      "index": 16
    },
    "dpad right": {
      "index": 17
    },
    "dpad up": {
      "index": 14
    },
    "home": {
      "index": 12
    },
    "left shoulder": {
      "index": 4
    },
    "left stick": {
      "index": 10
    },
    "left stick down": {
      "axis": 1,
      "direction": 1
    },
    "left stick left": {
      "axis": 0,
      "direction": -1
    },
    "left stick right": {
      "axis": 0,
      "direction": 1
    },
    "left stick up": {
      "axis": 1,
      "direction": -1
    },
    "left trigger": {
      "index": 6
    },
    "right shoulder": {
      "index": 5
    },
    "right stick down": {
      "axis": 5,
      "direction": 1
    },
    "right stick left": {
      "axis": 2,
      "direction": -1
    },
    "right stick right": {
      "axis": 2,
      "direction": 1
    },
    "right stick up": {
      "axis": 5,
      "direction": -1
    },
    "right trigger": {
      "index": 7
    },
    "start": {
      "index": 9
    },
    "x": {
      "index": 0
    },
    "y": {
      "index": 3
    },
    "a": {
      "index": 1
    },
    "right stick": {
      "index": 11
    }
  },
  "name": "54c-5c4-Wireless Controller Safari OSX",
  "supported": [
    {
      "browser": "Safari",
      "id": "54c-5c4-Wireless Controller",
      "os": "Mac OS X"
    }
  ]
}

Ithamar avatar Sep 19 '17 08:09 Ithamar