Skip to content

Commit

Permalink
Add Xbox Adaptive Controller -> Switch example
Browse files Browse the repository at this point in the history
Please note the Xbox Adaptive Controller currently only works with the
Bluetooth version of HID Remapper as it doesn't speak standard HID
over USB.
  • Loading branch information
jfedor2 committed Oct 7, 2023
1 parent 3565899 commit c099d8a
Showing 1 changed file with 257 additions and 0 deletions.
257 changes: 257 additions & 0 deletions config-tool-web/examples.js
Original file line number Diff line number Diff line change
Expand Up @@ -2572,6 +2572,263 @@ const examples = [
]
}
},
{
'description': 'Xbox Adaptive Controller adapter for Switch',
'config': {
"version": 9,
"unmapped_passthrough_layers": [],
"partial_scroll_timeout": 1000000,
"tap_hold_threshold": 200000,
"gpio_debounce_time_ms": 5,
"interval_override": 0,
"our_descriptor_number": 2,
"ignore_auth_dev_inputs": false,
"mappings": [
{
"target_usage": "0x00010039",
"source_usage": "0xfff30001",
"scaling": 1000,
"layers": [
0
],
"sticky": false,
"tap": false,
"hold": false
},
{
"target_usage": "0x00010030",
"source_usage": "0xfff30002",
"scaling": 1000,
"layers": [
0
],
"sticky": false,
"tap": false,
"hold": false
},
{
"target_usage": "0x00010031",
"source_usage": "0xfff30003",
"scaling": 1000,
"layers": [
0
],
"sticky": false,
"tap": false,
"hold": false
},
{
"target_usage": "0x00010032",
"source_usage": "0xfff30004",
"scaling": 1000,
"layers": [
0
],
"sticky": false,
"tap": false,
"hold": false
},
{
"target_usage": "0x00010035",
"source_usage": "0xfff30005",
"scaling": 1000,
"layers": [
0
],
"sticky": false,
"tap": false,
"hold": false
},
{
"target_usage": "0x00090002",
"source_usage": "0x00090001",
"scaling": 1000,
"layers": [
0
],
"sticky": false,
"tap": false,
"hold": false
},
{
"target_usage": "0x00090003",
"source_usage": "0x00090002",
"scaling": 1000,
"layers": [
0
],
"sticky": false,
"tap": false,
"hold": false
},
{
"target_usage": "0x00090001",
"source_usage": "0x00090004",
"scaling": 1000,
"layers": [
0
],
"sticky": false,
"tap": false,
"hold": false
},
{
"target_usage": "0x00090004",
"source_usage": "0x00090005",
"scaling": 1000,
"layers": [
0
],
"sticky": false,
"tap": false,
"hold": false
},
{
"target_usage": "0x00090005",
"source_usage": "0x00090007",
"scaling": 1000,
"layers": [
0
],
"sticky": false,
"tap": false,
"hold": false
},
{
"target_usage": "0x00090006",
"source_usage": "0x00090008",
"scaling": 1000,
"layers": [
0
],
"sticky": false,
"tap": false,
"hold": false
},
{
"target_usage": "0x00090007",
"source_usage": "0xfff30006",
"scaling": 1000,
"layers": [
0
],
"sticky": false,
"tap": false,
"hold": false
},
{
"target_usage": "0x00090008",
"source_usage": "0xfff30007",
"scaling": 1000,
"layers": [
0
],
"sticky": false,
"tap": false,
"hold": false
},
{
"target_usage": "0x0009000b",
"source_usage": "0x0009000e",
"scaling": 1000,
"layers": [
0
],
"sticky": false,
"tap": false,
"hold": false
},
{
"target_usage": "0x0009000c",
"source_usage": "0x0009000f",
"scaling": 1000,
"layers": [
0
],
"sticky": false,
"tap": false,
"hold": false
},
{
"target_usage": "0x00090009",
"source_usage": "0x0009000b",
"scaling": 1000,
"layers": [
0
],
"sticky": false,
"tap": false,
"hold": false
},
{
"target_usage": "0x0009000a",
"source_usage": "0x0009000c",
"scaling": 1000,
"layers": [
0
],
"sticky": false,
"tap": false,
"hold": false
},
{
"target_usage": "0x0009000d",
"source_usage": "0x0009000d",
"scaling": 1000,
"layers": [
0
],
"sticky": false,
"tap": false,
"hold": false
}
],
"macros": [
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[]
],
"expressions": [
"0x00010039 input_state -1000 add 9000 mod",
"0x00010030 input_state 125 mul 125 mul 250 mul",
"0x00010031 input_state 125 mul 125 mul 250 mul",
"0x00010032 input_state 125 mul 125 mul 250 mul",
"0x00010035 input_state 125 mul 125 mul 250 mul",
"0x000200c5 input_state 1023000 eq",
"0x000200c4 input_state 1023000 eq",
""
]
}
},
];

export default examples;

0 comments on commit c099d8a

Please sign in to comment.