Skip to content

Commit

Permalink
Presets: Add modern xbox controller preset by @Saikel-Orado-Liu
Browse files Browse the repository at this point in the history
  • Loading branch information
univrsal committed Aug 18, 2024
1 parent c339351 commit 3a0a39e
Show file tree
Hide file tree
Showing 7 changed files with 304 additions and 0 deletions.
1 change: 1 addition & 0 deletions presets/xbox-controller/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Preset made by [Saikel Orado Liu](https://github.com/Saikel-Orado-Liu) licensed under the [CC0](https://creativecommons.org/public-domain/cc0/) license.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
303 changes: 303 additions & 0 deletions presets/xbox-controller/xbox-controller.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,303 @@
{
"default_height": 0,
"default_width": 0,
"elements": [
{
"id": "body",
"mapping": [
0,
0,
2048,
1242
],
"pos": [
0,
0
],
"type": 0,
"z_level": "0"
},
{
"code": 0,
"id": "a",
"mapping": [
1695,
1854,
176,
154
],
"pos": [
1513,
697
],
"type": 2,
"z_level": "1"
},
{
"code": 1,
"id": "b",
"mapping": [
1872,
1854,
176,
153
],
"pos": [
1679,
560
],
"type": 2,
"z_level": 1
},
{
"code": 3,
"id": "y",
"mapping": [
1518,
1854,
176,
153
],
"pos": [
1533,
442
],
"type": 2,
"z_level": 1
},
{
"code": 2,
"id": "x",
"mapping": [
1341,
1854,
176,
153
],
"pos": [
1366,
575
],
"type": 2,
"z_level": 1
},
{
"code": 4,
"id": "select",
"mapping": [
1810,
1243,
111,
99
],
"pos": [
814,
601
],
"type": 2,
"z_level": 1
},
{
"code": 6,
"id": "start",
"mapping": [
1922,
1243,
111,
99
],
"pos": [
1123,
601
],
"type": 2,
"z_level": 1
},
{
"code": 9,
"id": "ls",
"mapping": [
0,
1243,
514,
213
],
"pos": [
197,
144
],
"type": 2,
"z_level": 1
},
{
"code": 10,
"id": "rs",
"mapping": [
515,
1243,
514,
213
],
"pos": [
1336,
144
],
"type": 2,
"z_level": "1"
},
{
"code": 11,
"id": "dpad_up",
"mapping": [
0,
1854,
332,
267
],
"pos": [
572,
818
],
"type": 2,
"z_level": 1
},
{
"code": 12,
"id": "dpad_down",
"mapping": [
333,
1854,
332,
267
],
"pos": [
572,
818
],
"type": 2,
"z_level": 1
},
{
"code": 13,
"id": "dpad_left",
"mapping": [
666,
1854,
332,
267
],
"pos": [
572,
818
],
"type": 2,
"z_level": 1
},
{
"code": 14,
"id": "dpad_right",
"mapping": [
999,
1854,
332,
267
],
"pos": [
572,
818
],
"type": 2,
"z_level": 1
},
{
"direction": 1,
"id": "lt",
"mapping": [
1043,
1243,
260,
272
],
"pos": [
223,
0
],
"side": 0,
"trigger_mode": false,
"type": 6,
"z_level": "1"
},
{
"direction": 1,
"id": "rt",
"mapping": [
1304,
1243,
260,
272
],
"pos": [
1565,
0
],
"side": 1,
"trigger_mode": false,
"type": 6,
"z_level": 1
},
{
"id": "left_analog_stick",
"mapping": [
1565,
1243,
244,
244
],
"pos": [
310,
591
],
"side": 0,
"stick_radius": 70,
"type": 5,
"z_level": 1
},
{
"id": "right_analog_stick",
"mapping": [
1565,
1243,
244,
244
],
"pos": [
1191,
872
],
"side": 1,
"stick_radius": 70,
"type": 5,
"z_level": 1
},
{
"id": "guide",
"mapping": [
0,
1673,
206,
180
],
"pos": [
921,
357
],
"type": 7,
"z_level": "1"
}
],
"flags": 6,
"overlay_height": 1242,
"overlay_width": 2048,
"space_h": 0,
"space_v": 0
}
Binary file added presets/xbox-controller/xbox-controller.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3a0a39e

Please sign in to comment.