Skip to content

Commit

Permalink
fix(Profiles): Use translated version of osk/quick2 instead.
Browse files Browse the repository at this point in the history
- While at it, fix some ayaneo controllers intitially reporting as a Nintendo Co., Ltd. Pro Controller.
  • Loading branch information
pastaq committed May 13, 2024
1 parent 8a1f157 commit adc620c
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 2 deletions.
4 changes: 4 additions & 0 deletions rootfs/usr/share/inputplumber/devices/50-ayaneo_2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ matches:
# One or more source devices to combine into a single virtual device. The events
# from these devices will be watched and translated according to the key map.
source_devices:
- group: gamepad
evdev:
name: Nintendo Co., Ltd. Pro Controller
phys_path: usb-0000:e4:00.3-4/input0
- group: gamepad
evdev:
name: Microsoft X-Box 360 pad
Expand Down
4 changes: 4 additions & 0 deletions rootfs/usr/share/inputplumber/devices/50-ayaneo_2s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ matches:
# One or more source devices to combine into a single virtual device. The events
# from these devices will be watched and translated according to the key map.
source_devices:
- group: gamepad
evdev:
name: Nintendo Co., Ltd. Pro Controller
phys_path: usb-0000:c4:00.3-4/input0
- group: gamepad
evdev:
name: Microsoft X-Box 360 pad
Expand Down
4 changes: 4 additions & 0 deletions rootfs/usr/share/inputplumber/devices/50-ayaneo_air_1s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ matches:
# One or more source devices to combine into a single virtual device. The events
# from these devices will be watched and translated according to the key map.
source_devices:
- group: gamepad
evdev:
name: Nintendo Co., Ltd. Pro Controller
phys_path: usb-0000:c4:00.3-4/input0
- group: gamepad
evdev:
name: Microsoft X-Box 360 pad
Expand Down
4 changes: 4 additions & 0 deletions rootfs/usr/share/inputplumber/devices/50-ayaneo_air_plus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ matches:
# One or more source devices to combine into a single virtual device. The events
# from these devices will be watched and translated according to the key map.
source_devices:
- group: gamepad
evdev:
name: Nintendo Co., Ltd. Pro Controller
phys_path: usb-0000:64:00.3-3/input0
- group: gamepad
evdev:
name: Microsoft X-Box 360 pad
Expand Down
4 changes: 4 additions & 0 deletions rootfs/usr/share/inputplumber/devices/50-ayaneo_flip.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ matches:
# One or more source devices to combine into a single virtual device. The events
# from these devices will be watched and translated according to the key map.
source_devices:
- group: gamepad
evdev:
name: Nintendo Co., Ltd. Pro Controller
phys_path: usb-0000:c4:00.3-4/input0
- group: gamepad
evdev:
name: Microsoft X-Box 360 pad
Expand Down
4 changes: 4 additions & 0 deletions rootfs/usr/share/inputplumber/devices/50-ayaneo_kun.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ matches:
# One or more source devices to combine into a single virtual device. The events
# from these devices will be watched and translated according to the key map.
source_devices:
- group: gamepad
evdev:
name: Nintendo Co., Ltd. Pro Controller
phys_path: usb-0000:c4:00.3-4.1/input0
- group: gamepad
evdev:
name: Microsoft X-Box 360 pad
Expand Down
4 changes: 4 additions & 0 deletions rootfs/usr/share/inputplumber/devices/50-ayaneo_slide.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ matches:
# One or more source devices to combine into a single virtual device. The events
# from these devices will be watched and translated according to the key map.
source_devices:
- group: gamepad
evdev:
name: Nintendo Co., Ltd. Pro Controller
phys_path: usb-0000:c4:00.3-3/input0
- group: gamepad
evdev:
name: Microsoft X-Box 360 pad
Expand Down
8 changes: 6 additions & 2 deletions rootfs/usr/share/inputplumber/profiles/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,18 @@ mapping:
button: LeftTop
target_events:
- gamepad:
button: Keyboard
button: Guide
- gamepad:
button: North
- name: RightTop
source_event:
gamepad:
button: RightTop
target_events:
- gamepad:
button: QuickAccess2
button: Guide
- gamepad:
button: East
- name: Keyboard
source_event:
gamepad:
Expand Down

0 comments on commit adc620c

Please sign in to comment.