-
Notifications
You must be signed in to change notification settings - Fork 83
feat(Hardware Support): Add AYN Odin 3 and other RSInput devices #659
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
06fbf50
feat(Hardware Support): Add AYN Odin 3
jenneron 0dfb0a8
feat(Hardware Support): Add AYN Odin 2
justradical d15df67
feat(Hardware Support): Add Ayn Odin 2 Portal
justradical 2ef24fa
feat(Hardware Support): Add Retroid Pocket 6
justradical 03ee51d
feat(Hardware Support): Add Retroid Pocket Nova
justradical File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
102 changes: 102 additions & 0 deletions
102
rootfs/usr/share/inputplumber/capability_maps/rsinput_type1.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,102 @@ | ||
| # yaml-language-server: $schema=https://raw.githubusercontent.com/ShadowBlip/InputPlumber/main/rootfs/usr/share/inputplumber/schema/capability_map_v2.json | ||
| version: 2 | ||
| kind: CapabilityMap | ||
| name: RSInput Type 1 | ||
| id: rsinput1 | ||
|
|
||
| mapping: | ||
| - name: D-Pad Up | ||
| source_events: | ||
| - evdev: | ||
| event_type: KEY | ||
| event_code: BTN_DPAD_UP | ||
| value_type: button | ||
| target_event: | ||
| gamepad: | ||
| button: DPadUp | ||
|
|
||
| - name: D-Pad Down | ||
| source_events: | ||
| - evdev: | ||
| event_type: KEY | ||
| event_code: BTN_DPAD_DOWN | ||
| value_type: button | ||
| target_event: | ||
| gamepad: | ||
| button: DPadDown | ||
|
|
||
| - name: D-Pad Left | ||
| source_events: | ||
| - evdev: | ||
| event_type: KEY | ||
| event_code: BTN_DPAD_LEFT | ||
| value_type: button | ||
| target_event: | ||
| gamepad: | ||
| button: DPadLeft | ||
|
|
||
| - name: D-Pad Right | ||
| source_events: | ||
| - evdev: | ||
| event_type: KEY | ||
| event_code: BTN_DPAD_RIGHT | ||
| value_type: button | ||
| target_event: | ||
| gamepad: | ||
| button: DPadRight | ||
|
|
||
| - name: Back Button | ||
| source_events: | ||
| - evdev: | ||
| event_type: KEY | ||
| event_code: BTN_BACK | ||
| value_type: button | ||
| target_event: | ||
| gamepad: | ||
| button: QuickAccess | ||
|
|
||
| - name: Left Back Paddle | ||
| source_events: | ||
| - evdev: | ||
| event_type: KEY | ||
| event_code: BTN_Z | ||
| value_type: button | ||
| target_event: | ||
| gamepad: | ||
| button: LeftPaddle1 | ||
|
|
||
| - name: Right Back Paddle | ||
| source_events: | ||
| - evdev: | ||
| event_type: KEY | ||
| event_code: BTN_C | ||
| value_type: button | ||
| target_event: | ||
| gamepad: | ||
| button: RightPaddle1 | ||
|
|
||
| # Kernel reports NORTH/WEST by physical position, but Xbox layout | ||
| # relies on these swapped. This results in NORTH/WEST swapped in | ||
| # evtest, but produces expected behaviour in games. | ||
|
|
||
| - name: West Button | ||
| source_events: | ||
| - evdev: | ||
| event_type: KEY | ||
| event_code: BTN_NORTH | ||
| value_type: button | ||
| target_event: | ||
| gamepad: | ||
| button: West | ||
|
|
||
| - name: North Button | ||
| source_events: | ||
| - evdev: | ||
| event_type: KEY | ||
| event_code: BTN_WEST | ||
| value_type: button | ||
| target_event: | ||
| gamepad: | ||
| button: North | ||
|
|
||
| filtered_events: [] | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| # yaml-language-server: $schema=https://raw.githubusercontent.com/ShadowBlip/InputPlumber/main/rootfs/usr/share/inputplumber/schema/composite_device_v1.json | ||
| version: 1 | ||
| kind: CompositeDevice | ||
| name: AYN Odin 2 | ||
|
|
||
| options: | ||
| auto_manage: true | ||
|
|
||
| matches: | ||
| - udev: | ||
| sys_path: /sys/firmware/devicetree/base | ||
| attributes: | ||
| - name: compatible | ||
| value: ayn,odin2 | ||
| - udev: | ||
| sys_path: /sys/firmware/devicetree/base | ||
| attributes: | ||
| - name: compatible | ||
| value: ayn,odin2portal | ||
|
|
||
| source_devices: | ||
| - group: gamepad | ||
| capability_map_id: rsinput1 | ||
| evdev: | ||
| name: AYN Odin2 Gamepad | ||
| phys_path: rsinput-gamepad/input0 | ||
| vendor_id: "2020" | ||
| product_id: "3001" | ||
| handler: event* | ||
|
|
||
| - group: gamepad | ||
| capability_map_id: rsinput1 | ||
| evdev: | ||
| name: gpio-keys-paddles | ||
| handler: event* | ||
|
|
||
| target_devices: | ||
| - xbox-elite | ||
|
pastaq marked this conversation as resolved.
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| # yaml-language-server: $schema=https://raw.githubusercontent.com/ShadowBlip/InputPlumber/main/rootfs/usr/share/inputplumber/schema/composite_device_v1.json | ||
| version: 1 | ||
| kind: CompositeDevice | ||
| name: AYN Odin 3 | ||
|
|
||
| # TODO: Add support for gyroscope, see | ||
| # https://github.com/ShadowBlip/InputPlumber/pull/590 | ||
| # This command proves gyroscope is present and supported with libssc: | ||
| # ssccli --sensor=gyroscope | ||
|
|
||
| options: | ||
| auto_manage: true | ||
|
|
||
| matches: | ||
| - udev: | ||
| sys_path: /sys/firmware/devicetree/base | ||
| attributes: | ||
| - name: compatible | ||
| value: ayn,odin3 | ||
|
|
||
| source_devices: | ||
| - group: gamepad | ||
| capability_map_id: rsinput1 | ||
| evdev: | ||
| name: AYN Odin3 Gamepad | ||
| phys_path: rsinput-gamepad/input0 | ||
| vendor_id: "2020" | ||
| product_id: "3001" | ||
|
pastaq marked this conversation as resolved.
|
||
| handler: event* | ||
|
|
||
| - group: gamepad | ||
| capability_map_id: rsinput1 | ||
| evdev: | ||
| name: gpio-keys-paddles | ||
| phys_path: gpio-keys/input0 | ||
| handler: event* | ||
|
|
||
| target_devices: | ||
| - xbox-elite | ||
|
pastaq marked this conversation as resolved.
|
||
37 changes: 37 additions & 0 deletions
37
rootfs/usr/share/inputplumber/devices/50-retroid_pocket6.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| # yaml-language-server: $schema=https://raw.githubusercontent.com/ShadowBlip/InputPlumber/main/rootfs/usr/share/inputplumber/schema/composite_device_v1.json | ||
| version: 1 | ||
| kind: CompositeDevice | ||
| name: Retroid Pocket 6 | ||
|
|
||
| options: | ||
| auto_manage: true | ||
|
|
||
| matches: | ||
| - udev: | ||
| sys_path: /sys/firmware/devicetree/base | ||
| attributes: | ||
| - name: compatible | ||
| value: retroidpocket,rp6 | ||
|
|
||
| source_devices: | ||
| - group: gamepad | ||
| evdev: | ||
| name: AYN Odin2 Gamepad | ||
| phys_path: rsinput-gamepad/input0 | ||
| vendor_id: "2020" | ||
| product_id: "3001" | ||
| handler: event* | ||
| capability_map_id: rsinput1 | ||
|
|
||
| - group: gamepad | ||
| evdev: | ||
| name: gpio-keys | ||
| phys_path: gpio-keys/input0 | ||
| handler: event* | ||
| capability_map_id: rsinput1 | ||
|
|
||
| target_devices: | ||
| - xbox-elite | ||
| # gpio-keys node is shared between gamepad and volume up key, | ||
| # we need keyboard target here for volume up to work | ||
| - keyboard | ||
|
pastaq marked this conversation as resolved.
|
||
37 changes: 37 additions & 0 deletions
37
rootfs/usr/share/inputplumber/devices/50-retroid_pocket_nova.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| # yaml-language-server: $schema=https://raw.githubusercontent.com/ShadowBlip/InputPlumber/main/rootfs/usr/share/inputplumber/schema/composite_device_v1.json | ||
| version: 1 | ||
| kind: CompositeDevice | ||
| name: Retroid Pocket Nova | ||
|
|
||
| options: | ||
| auto_manage: true | ||
|
|
||
| matches: | ||
| - udev: | ||
| sys_path: /sys/firmware/devicetree/base | ||
| attributes: | ||
| - name: compatible | ||
| value: retroidpocket,rpnova | ||
|
|
||
| source_devices: | ||
| - group: gamepad | ||
| capability_map_id: rsinput1 | ||
| evdev: | ||
| name: AYN Odin2 Gamepad | ||
| phys_path: rsinput-gamepad/input0 | ||
| vendor_id: "2020" | ||
| product_id: "3001" | ||
| handler: event* | ||
|
|
||
| - group: gamepad | ||
| capability_map_id: rsinput1 | ||
| evdev: | ||
| name: gpio-keys | ||
| phys_path: gpio-keys/input0 | ||
| handler: event* | ||
|
|
||
| target_devices: | ||
| - xbox-elite | ||
| # gpio-keys node is shared between gamepad and volume up key, | ||
| # we need keyboard target here for volume up to work | ||
| - keyboard | ||
|
pastaq marked this conversation as resolved.
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.