Skip to content

Commit

Permalink
feat(composite_device): Add all HandyGCCS supported devices.
Browse files Browse the repository at this point in the history
  • Loading branch information
pastaq authored and ShadowApex committed Mar 17, 2024
1 parent 55a5981 commit 00491ae
Show file tree
Hide file tree
Showing 43 changed files with 754 additions and 91 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

70 changes: 70 additions & 0 deletions rootfs/usr/share/inputplumber/capability_maps/ally_type1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# yaml-language-server: $schema=../schema/capability_map_v1.json
# Schema version number
version: 1

# The type of configuration schema
kind: CapabilityMap

# Name for the device event map
name: Ally Type 1

# Unique identifier of the capability mapping
id: aly1

# List of mapped events that are activated by a specific set of activation keys.
mapping:
#- name: Select
# source_events:
# - gamepad:
# button: Select
# target_event:
# gamepad:
# button: Guide
#- name: Start
# source_events:
# - gamepad:
# button: Start
# target_event:
# gamepad:
# button: QuickAccess
- name: Control Center (Short)
source_events:
- keyboard: KeyF16
target_event:
gamepad:
button: Guide #Select
- name: Control Center (Long)
source_events:
- keyboard: KeyLeftCtrl
- keyboard: KeyLeftAlt
- keyboard: KeyDelete
target_event:
gamepad:
button: Guide # TODO: Add a more specific button
- name: Armory Crate (Short)
source_events:
- keyboard: KeyProg1
target_event:
gamepad:
button: QuickAccess #Start
- name: Armory Crate (Long)
source_events:
- keyboard: KeyF17
target_event:
gamepad:
button: QuickAccess2
- name: Left Paddle
source_events:
- keyboard: KeyF14
target_event:
gamepad:
button: LeftPaddle1
- name: Right Paddle
source_events:
- keyboard: KeyF15
target_event:
gamepad:
button: RightPaddle1

# List of events to filter from the source devices
filtered_events: []
46 changes: 46 additions & 0 deletions rootfs/usr/share/inputplumber/capability_maps/anbernic_type1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# yaml-language-server: $schema=../schema/capability_map_v1.json
# Schema version number
version: 1

# The type of configuration schema
kind: CapabilityMap

# Name for the device event map
name: Anbernic Type 1

# Unique identifier of the capability mapping
id: anb1

# List of mapped events that are activated by a specific set of activation keys.
mapping:
#TODO: Figure out how to use this and also Windows, Keyboard.
#- name: Home (Short Press)
# source_events:
# - keyboard: KeyLeftMeta
# target_event:
# gamepad:
# button: QuickAccess2
- name: Home (Long Press)
source_events:
- keyboard: KeyEsc
target_event:
gamepad:
button: QuickAccess
- name: Keyboard
source_events:
- keyboard: KeyO
- keyboard: KeyLeftCtrl
- keyboard: KeyLeftMeta
target_event:
gamepad:
button: Keyboard
- name: Windows
source_events:
- keyboard: KeyD
- keyboard: KeyLeftMeta
target_event:
gamepad:
button: Guide

# List of events to filter from the source devices
filtered_events: []
47 changes: 47 additions & 0 deletions rootfs/usr/share/inputplumber/capability_maps/ayaneo_type1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# yaml-language-server: $schema=../schema/capability_map_v1.json
# Schema version number
version: 1

# The type of configuration schema
kind: CapabilityMap

# Name for the device event map
name: AYANEO Type 1

# Unique identifier of the capability mapping
id: aya1

# List of mapped events that are activated by a specific set of activation keys.
mapping:
#TODO: Figure out how to use this and also KB.
#- name: Win
# source_events:
# - keyboard: KeyLeftMeta
# target_event:
# gamepad:
# button: Screenshot
- name: Task Manager
source_events:
- keyboard: KeyRightCtrl
- keyboard: KeyRightAlt
- keyboard: KeyDelete
target_event:
gamepad:
button: QuickAccess
- name: Keyboard
source_events:
- keyboard: KeyO
- keyboard: KeyRightCtrl
- keyboard: KeyLeftMeta
target_event:
gamepad:
button: Keyboard
- name: Escape
source_events:
- keyboard: KeyEsc
target_event:
gamepad:
button: QuickAccess2

# List of events to filter from the source devices
filtered_events: []
48 changes: 48 additions & 0 deletions rootfs/usr/share/inputplumber/capability_maps/ayaneo_type2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# yaml-language-server: $schema=../schema/capability_map_v1.json
# Schema version number
version: 1

# The type of configuration schema
kind: CapabilityMap

# Name for the device event map
name: AYANEO Type 2

# Unique identifier of the capability mapping
id: aya2

# List of mapped events that are activated by a specific set of activation keys.
mapping:
- name: Custom v1
source_events:
- keyboard: KeyApostrophe
- keyboard: KeyCopy
target_event:
gamepad:
button: QuickAccess
- name: Custom v2
source_events:
- keyboard: KeyD
- keyboard: KeyLeftMeta
target_event:
gamepad:
button: QuickAccess
- name: Aya Space v1
source_events:
- keyboard: KeyKpEnter
- keyboard: KeyLeft
- keyboard: KeyCopy
target_event:
gamepad:
button: Guide
- name: Aya Space v2
source_events:
- keyboard: KeyF12
- keyboard: KeyRightCtrl
- keyboard: KeyLeftMeta
target_event:
gamepad:
button: Guide

# List of events to filter from the source devices
filtered_events: []
49 changes: 49 additions & 0 deletions rootfs/usr/share/inputplumber/capability_maps/ayaneo_type3.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# yaml-language-server: $schema=../schema/capability_map_v1.json
# Schema version number
version: 1

# The type of configuration schema
kind: CapabilityMap

# Name for the device event map
name: AYANEO Type 3

# Unique identifier of the capability mapping
id: aya3

# List of mapped events that are activated by a specific set of activation keys.
mapping:
- name: Custom
source_events:
- keyboard: KeyD
- keyboard: KeyLeftMeta
target_event:
gamepad:
button: QuickAccess
- name: Aya Space
source_events:
- keyboard: KeyF12
- keyboard: KeyRightCtrl
- keyboard: KeyLeftMeta
target_event:
gamepad:
button: Guide
- name: LC
source_events:
- keyboard: KeyF11
- keyboard: KeyRightCtrl
- keyboard: KeyLeftMeta
target_event:
gamepad:
button: LeftTop
- name: RC
source_events:
- keyboard: KeyF10
- keyboard: KeyRightCtrl
- keyboard: KeyLeftMeta
target_event:
gamepad:
button: RightTop

# List of events to filter from the source devices
filtered_events: []
49 changes: 49 additions & 0 deletions rootfs/usr/share/inputplumber/capability_maps/ayaneo_type4.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# yaml-language-server: $schema=../schema/capability_map_v1.json
# Schema version number
version: 1

# The type of configuration schema
kind: CapabilityMap

# Name for the device event map
name: AYANEO Type 4

# Unique identifier of the capability mapping
id: aya4

# List of mapped events that are activated by a specific set of activation keys.
mapping:
- name: Custom
source_events:
- keyboard: KeyD
- keyboard: KeyLeftMeta
target_event:
gamepad:
button: QuickAccess
- name: Aya Space
source_events:
- keyboard: KeyRightCtrl
- keyboard: KeyLeftMeta
- keyboard: KeyF17
target_event:
gamepad:
button: Guide
- name: LC
source_events:
- keyboard: KeyRightCtrl
- keyboard: KeyLeftMeta
- keyboard: KeyF15
target_event:
gamepad:
button: LeftTop
- name: RC
source_events:
- keyboard: KeyRightCtrl
- keyboard: KeyLeftMeta
- keyboard: KeyF16
target_event:
gamepad:
button: RightTop

# List of events to filter from the source devices
filtered_events: []
49 changes: 49 additions & 0 deletions rootfs/usr/share/inputplumber/capability_maps/ayaneo_type5.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# yaml-language-server: $schema=../schema/capability_map_v1.json
# Schema version number
version: 1

# The type of configuration schema
kind: CapabilityMap

# Name for the device event map
name: AYANEO Type 5

# Unique identifier of the capability mapping
id: aya5

# List of mapped events that are activated by a specific set of activation keys.
mapping:
- name: Custom
source_events:
- keyboard: KeyD
- keyboard: KeyLeftMeta
target_event:
gamepad:
button: QuickAccess
- name: Aya Space
source_events:
- keyboard: KeyLeftCtrl
- keyboard: KeyLeftMeta
- keyboard: KeyF17
target_event:
gamepad:
button: Guide
- name: LC
source_events:
- keyboard: KeyLeftCtrl
- keyboard: KeyLeftMeta
- keyboard: KeyF15
target_event:
gamepad:
button: LeftTop
- name: RC
source_events:
- keyboard: KeyLeftCtrl
- keyboard: KeyLeftMeta
- keyboard: KeyF16
target_event:
gamepad:
button: RightTop

# List of events to filter from the source devices
filtered_events: []
Loading

0 comments on commit 00491ae

Please sign in to comment.