mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
sm8650/inputplumber: update config
This commit is contained in:
@@ -6,10 +6,10 @@ version: 2
|
||||
kind: CapabilityMap
|
||||
|
||||
# Name for the device event map
|
||||
name: AYANEO MCU Mapping
|
||||
name: AYANEO MCU Mapping Japanese
|
||||
|
||||
# Unique identifier of the capability mapping
|
||||
id: ayaneo_mcu
|
||||
id: ayaneo_mcu_japanese
|
||||
|
||||
# List of mapped events
|
||||
mapping:
|
||||
@@ -27,7 +27,7 @@ mapping:
|
||||
source_events:
|
||||
- evdev:
|
||||
event_type: KEY
|
||||
event_code: BTN_SOUTH
|
||||
event_code: BTN_EAST
|
||||
value_type: button
|
||||
target_event:
|
||||
gamepad:
|
||||
@@ -37,7 +37,7 @@ mapping:
|
||||
source_events:
|
||||
- evdev:
|
||||
event_type: KEY
|
||||
event_code: BTN_WEST
|
||||
event_code: BTN_NORTH
|
||||
value_type: button
|
||||
target_event:
|
||||
gamepad:
|
||||
@@ -47,7 +47,7 @@ mapping:
|
||||
source_events:
|
||||
- evdev:
|
||||
event_type: KEY
|
||||
event_code: BTN_NORTH
|
||||
event_code: BTN_WEST
|
||||
value_type: button
|
||||
target_event:
|
||||
gamepad:
|
||||
@@ -57,7 +57,7 @@ mapping:
|
||||
source_events:
|
||||
- evdev:
|
||||
event_type: KEY
|
||||
event_code: BTN_EAST
|
||||
event_code: BTN_SOUTH
|
||||
value_type: button
|
||||
target_event:
|
||||
gamepad:
|
||||
@@ -0,0 +1,243 @@
|
||||
# yaml-language-server: $schema=https://raw.githubusercontent.com/ShadowBlip/InputPlumber/main/rootfs/usr/share/inputplumber/schema/capability_map_v2.json
|
||||
# Schema version number
|
||||
version: 2
|
||||
|
||||
# The type of configuration schema
|
||||
kind: CapabilityMap
|
||||
|
||||
# Name for the device event map
|
||||
name: AYANEO MCU Standard Mapping
|
||||
|
||||
# Unique identifier of the capability mapping
|
||||
id: ayaneo_mcu_standard
|
||||
|
||||
# List of mapped events
|
||||
mapping:
|
||||
- name: Guide Button
|
||||
source_events:
|
||||
- evdev:
|
||||
event_type: KEY
|
||||
event_code: BTN_MODE
|
||||
value_type: button
|
||||
target_event:
|
||||
gamepad:
|
||||
button: Guide
|
||||
|
||||
- name: South Button
|
||||
source_events:
|
||||
- evdev:
|
||||
event_type: KEY
|
||||
event_code: BTN_SOUTH
|
||||
value_type: button
|
||||
target_event:
|
||||
gamepad:
|
||||
button: South
|
||||
|
||||
- name: West Button
|
||||
source_events:
|
||||
- evdev:
|
||||
event_type: KEY
|
||||
event_code: BTN_WEST
|
||||
value_type: button
|
||||
target_event:
|
||||
gamepad:
|
||||
button: West
|
||||
|
||||
- name: North Button
|
||||
source_events:
|
||||
- evdev:
|
||||
event_type: KEY
|
||||
event_code: BTN_NORTH
|
||||
value_type: button
|
||||
target_event:
|
||||
gamepad:
|
||||
button: North
|
||||
|
||||
- name: East Button
|
||||
source_events:
|
||||
- evdev:
|
||||
event_type: KEY
|
||||
event_code: BTN_EAST
|
||||
value_type: button
|
||||
target_event:
|
||||
gamepad:
|
||||
button: East
|
||||
|
||||
- name: Start Button
|
||||
source_events:
|
||||
- evdev:
|
||||
event_type: KEY
|
||||
event_code: BTN_START
|
||||
value_type: button
|
||||
target_event:
|
||||
gamepad:
|
||||
button: Start
|
||||
|
||||
- name: Select Button
|
||||
source_events:
|
||||
- evdev:
|
||||
event_type: KEY
|
||||
event_code: BTN_SELECT
|
||||
value_type: button
|
||||
target_event:
|
||||
gamepad:
|
||||
button: Select
|
||||
|
||||
- name: Right Trigger
|
||||
source_events:
|
||||
- evdev:
|
||||
event_type: ABS
|
||||
event_code: ABS_GAS
|
||||
value_type: trigger
|
||||
target_event:
|
||||
gamepad:
|
||||
trigger:
|
||||
name: RightTrigger
|
||||
|
||||
- name: Left Trigger
|
||||
source_events:
|
||||
- evdev:
|
||||
event_type: ABS
|
||||
event_code: ABS_BRAKE
|
||||
value_type: trigger
|
||||
target_event:
|
||||
gamepad:
|
||||
trigger:
|
||||
name: LeftTrigger
|
||||
|
||||
- name: Right Bumper
|
||||
source_events:
|
||||
- evdev:
|
||||
event_type: KEY
|
||||
event_code: BTN_TR
|
||||
value_type: button
|
||||
target_event:
|
||||
gamepad:
|
||||
button: RightBumper
|
||||
|
||||
- name: Left Bumper
|
||||
source_events:
|
||||
- evdev:
|
||||
event_type: KEY
|
||||
event_code: BTN_TL
|
||||
value_type: button
|
||||
target_event:
|
||||
gamepad:
|
||||
button: LeftBumper
|
||||
|
||||
- name: Right Paddle
|
||||
source_events:
|
||||
- evdev:
|
||||
event_type: KEY
|
||||
event_code: BTN_C
|
||||
value_type: button
|
||||
target_event:
|
||||
gamepad:
|
||||
button: RightPaddle1
|
||||
|
||||
- name: Left Paddle
|
||||
source_events:
|
||||
- evdev:
|
||||
event_type: KEY
|
||||
event_code: BTN_Z
|
||||
value_type: button
|
||||
target_event:
|
||||
gamepad:
|
||||
button: LeftPaddle1
|
||||
|
||||
- name: Right Stick
|
||||
source_events:
|
||||
- evdev:
|
||||
event_type: ABS
|
||||
event_code: ABS_Z
|
||||
value_type: joystick_x
|
||||
- evdev:
|
||||
event_type: ABS
|
||||
event_code: ABS_RZ
|
||||
value_type: joystick_y
|
||||
target_event:
|
||||
gamepad:
|
||||
axis:
|
||||
name: RightStick
|
||||
|
||||
- name: Left Stick
|
||||
source_events:
|
||||
- evdev:
|
||||
event_type: ABS
|
||||
event_code: ABS_X
|
||||
value_type: joystick_x
|
||||
- evdev:
|
||||
event_type: ABS
|
||||
event_code: ABS_Y
|
||||
value_type: joystick_y
|
||||
target_event:
|
||||
gamepad:
|
||||
axis:
|
||||
name: LeftStick
|
||||
|
||||
- name: Right Stick Click
|
||||
source_events:
|
||||
- evdev:
|
||||
event_type: KEY
|
||||
event_code: BTN_THUMBR
|
||||
value_type: button
|
||||
target_event:
|
||||
gamepad:
|
||||
button: RightStick
|
||||
|
||||
- name: Left Stick Click
|
||||
source_events:
|
||||
- evdev:
|
||||
event_type: KEY
|
||||
event_code: BTN_THUMBL
|
||||
value_type: button
|
||||
target_event:
|
||||
gamepad:
|
||||
button: LeftStick
|
||||
|
||||
- name: Dpad Left
|
||||
source_events:
|
||||
- evdev:
|
||||
event_type: ABS
|
||||
event_code: ABS_HAT0X
|
||||
value_type: button
|
||||
axis_direction: negative
|
||||
target_event:
|
||||
gamepad:
|
||||
button: DPadLeft
|
||||
|
||||
- name: Dpad Right
|
||||
source_events:
|
||||
- evdev:
|
||||
event_type: ABS
|
||||
event_code: ABS_HAT0X
|
||||
value_type: button
|
||||
axis_direction: positive
|
||||
target_event:
|
||||
gamepad:
|
||||
button: DPadRight
|
||||
|
||||
- name: Dpad Down
|
||||
source_events:
|
||||
- evdev:
|
||||
event_type: ABS
|
||||
event_code: ABS_HAT0Y
|
||||
value_type: button
|
||||
axis_direction: positive
|
||||
target_event:
|
||||
gamepad:
|
||||
button: DPadDown
|
||||
|
||||
- name: Dpad Up
|
||||
source_events:
|
||||
- evdev:
|
||||
event_type: ABS
|
||||
event_code: ABS_HAT0Y
|
||||
value_type: button
|
||||
axis_direction: negative
|
||||
target_event:
|
||||
gamepad:
|
||||
button: DPadUp
|
||||
|
||||
# List of events to filter from the source devices
|
||||
filtered_events: []
|
||||
@@ -6,10 +6,10 @@ version: 2
|
||||
kind: CapabilityMap
|
||||
|
||||
# Name for the device event map
|
||||
name: AYANEO MCU Mapping (Xbox mode)
|
||||
name: AYANEO MCU Mapping Japanese (Xbox mode)
|
||||
|
||||
# Unique identifier of the capability mapping
|
||||
id: ayaneo_mcu_xbox
|
||||
id: ayaneo_mcu_xbox_japanese
|
||||
|
||||
# List of mapped events
|
||||
mapping:
|
||||
@@ -27,7 +27,7 @@ mapping:
|
||||
source_events:
|
||||
- evdev:
|
||||
event_type: KEY
|
||||
event_code: BTN_SOUTH
|
||||
event_code: BTN_EAST
|
||||
value_type: button
|
||||
target_event:
|
||||
gamepad:
|
||||
@@ -37,7 +37,7 @@ mapping:
|
||||
source_events:
|
||||
- evdev:
|
||||
event_type: KEY
|
||||
event_code: BTN_WEST
|
||||
event_code: BTN_NORTH
|
||||
value_type: button
|
||||
target_event:
|
||||
gamepad:
|
||||
@@ -47,7 +47,7 @@ mapping:
|
||||
source_events:
|
||||
- evdev:
|
||||
event_type: KEY
|
||||
event_code: BTN_NORTH
|
||||
event_code: BTN_WEST
|
||||
value_type: button
|
||||
target_event:
|
||||
gamepad:
|
||||
@@ -57,7 +57,7 @@ mapping:
|
||||
source_events:
|
||||
- evdev:
|
||||
event_type: KEY
|
||||
event_code: BTN_EAST
|
||||
event_code: BTN_SOUTH
|
||||
value_type: button
|
||||
target_event:
|
||||
gamepad:
|
||||
@@ -0,0 +1,243 @@
|
||||
# yaml-language-server: $schema=https://raw.githubusercontent.com/ShadowBlip/InputPlumber/main/rootfs/usr/share/inputplumber/schema/capability_map_v2.json
|
||||
# Schema version number
|
||||
version: 2
|
||||
|
||||
# The type of configuration schema
|
||||
kind: CapabilityMap
|
||||
|
||||
# Name for the device event map
|
||||
name: AYANEO MCU Standard Mapping (Xbox mode)
|
||||
|
||||
# Unique identifier of the capability mapping
|
||||
id: ayaneo_mcu_xbox_standard
|
||||
|
||||
# List of mapped events
|
||||
mapping:
|
||||
- name: Guide Button
|
||||
source_events:
|
||||
- evdev:
|
||||
event_type: KEY
|
||||
event_code: BTN_MODE
|
||||
value_type: button
|
||||
target_event:
|
||||
gamepad:
|
||||
button: Guide
|
||||
|
||||
- name: South Button
|
||||
source_events:
|
||||
- evdev:
|
||||
event_type: KEY
|
||||
event_code: BTN_SOUTH
|
||||
value_type: button
|
||||
target_event:
|
||||
gamepad:
|
||||
button: South
|
||||
|
||||
- name: West Button
|
||||
source_events:
|
||||
- evdev:
|
||||
event_type: KEY
|
||||
event_code: BTN_WEST
|
||||
value_type: button
|
||||
target_event:
|
||||
gamepad:
|
||||
button: West
|
||||
|
||||
- name: North Button
|
||||
source_events:
|
||||
- evdev:
|
||||
event_type: KEY
|
||||
event_code: BTN_NORTH
|
||||
value_type: button
|
||||
target_event:
|
||||
gamepad:
|
||||
button: North
|
||||
|
||||
- name: East Button
|
||||
source_events:
|
||||
- evdev:
|
||||
event_type: KEY
|
||||
event_code: BTN_EAST
|
||||
value_type: button
|
||||
target_event:
|
||||
gamepad:
|
||||
button: East
|
||||
|
||||
- name: Start Button
|
||||
source_events:
|
||||
- evdev:
|
||||
event_type: KEY
|
||||
event_code: BTN_START
|
||||
value_type: button
|
||||
target_event:
|
||||
gamepad:
|
||||
button: Start
|
||||
|
||||
- name: Select Button
|
||||
source_events:
|
||||
- evdev:
|
||||
event_type: KEY
|
||||
event_code: BTN_SELECT
|
||||
value_type: button
|
||||
target_event:
|
||||
gamepad:
|
||||
button: Select
|
||||
|
||||
- name: Right Trigger
|
||||
source_events:
|
||||
- evdev:
|
||||
event_type: ABS
|
||||
event_code: ABS_GAS
|
||||
value_type: trigger
|
||||
target_event:
|
||||
gamepad:
|
||||
trigger:
|
||||
name: RightTrigger
|
||||
|
||||
- name: Left Trigger
|
||||
source_events:
|
||||
- evdev:
|
||||
event_type: ABS
|
||||
event_code: ABS_BRAKE
|
||||
value_type: trigger
|
||||
target_event:
|
||||
gamepad:
|
||||
trigger:
|
||||
name: LeftTrigger
|
||||
|
||||
- name: Right Bumper
|
||||
source_events:
|
||||
- evdev:
|
||||
event_type: KEY
|
||||
event_code: BTN_TR
|
||||
value_type: button
|
||||
target_event:
|
||||
gamepad:
|
||||
button: RightBumper
|
||||
|
||||
- name: Left Bumper
|
||||
source_events:
|
||||
- evdev:
|
||||
event_type: KEY
|
||||
event_code: BTN_TL
|
||||
value_type: button
|
||||
target_event:
|
||||
gamepad:
|
||||
button: LeftBumper
|
||||
|
||||
- name: Right Paddle
|
||||
source_events:
|
||||
- evdev:
|
||||
event_type: KEY
|
||||
event_code: BTN_C
|
||||
value_type: button
|
||||
target_event:
|
||||
gamepad:
|
||||
button: RightPaddle1
|
||||
|
||||
- name: Left Paddle
|
||||
source_events:
|
||||
- evdev:
|
||||
event_type: KEY
|
||||
event_code: BTN_Z
|
||||
value_type: button
|
||||
target_event:
|
||||
gamepad:
|
||||
button: LeftPaddle1
|
||||
|
||||
- name: Right Stick
|
||||
source_events:
|
||||
- evdev:
|
||||
event_type: ABS
|
||||
event_code: ABS_RX
|
||||
value_type: joystick_x
|
||||
- evdev:
|
||||
event_type: ABS
|
||||
event_code: ABS_RY
|
||||
value_type: joystick_y
|
||||
target_event:
|
||||
gamepad:
|
||||
axis:
|
||||
name: RightStick
|
||||
|
||||
- name: Left Stick
|
||||
source_events:
|
||||
- evdev:
|
||||
event_type: ABS
|
||||
event_code: ABS_X
|
||||
value_type: joystick_x
|
||||
- evdev:
|
||||
event_type: ABS
|
||||
event_code: ABS_Y
|
||||
value_type: joystick_y
|
||||
target_event:
|
||||
gamepad:
|
||||
axis:
|
||||
name: LeftStick
|
||||
|
||||
- name: Right Stick Click
|
||||
source_events:
|
||||
- evdev:
|
||||
event_type: KEY
|
||||
event_code: BTN_THUMBR
|
||||
value_type: button
|
||||
target_event:
|
||||
gamepad:
|
||||
button: RightStick
|
||||
|
||||
- name: Left Stick Click
|
||||
source_events:
|
||||
- evdev:
|
||||
event_type: KEY
|
||||
event_code: BTN_THUMBL
|
||||
value_type: button
|
||||
target_event:
|
||||
gamepad:
|
||||
button: LeftStick
|
||||
|
||||
- name: Dpad Left
|
||||
source_events:
|
||||
- evdev:
|
||||
event_type: ABS
|
||||
event_code: ABS_HAT0X
|
||||
value_type: button
|
||||
axis_direction: negative
|
||||
target_event:
|
||||
gamepad:
|
||||
button: DPadLeft
|
||||
|
||||
- name: Dpad Right
|
||||
source_events:
|
||||
- evdev:
|
||||
event_type: ABS
|
||||
event_code: ABS_HAT0X
|
||||
value_type: button
|
||||
axis_direction: positive
|
||||
target_event:
|
||||
gamepad:
|
||||
button: DPadRight
|
||||
|
||||
- name: Dpad Down
|
||||
source_events:
|
||||
- evdev:
|
||||
event_type: ABS
|
||||
event_code: ABS_HAT0Y
|
||||
value_type: button
|
||||
axis_direction: positive
|
||||
target_event:
|
||||
gamepad:
|
||||
button: DPadDown
|
||||
|
||||
- name: Dpad Up
|
||||
source_events:
|
||||
- evdev:
|
||||
event_type: ABS
|
||||
event_code: ABS_HAT0Y
|
||||
value_type: button
|
||||
axis_direction: negative
|
||||
target_event:
|
||||
gamepad:
|
||||
button: DPadUp
|
||||
|
||||
# List of events to filter from the source devices
|
||||
filtered_events: []
|
||||
@@ -6,7 +6,7 @@ version: 1
|
||||
kind: CompositeDevice
|
||||
|
||||
# Name of the composite device mapping
|
||||
name: AYANEO MCU
|
||||
name: AYANEO Standard Layout
|
||||
|
||||
# Only use this profile if *any* of the given matches matches. If this list is
|
||||
# empty, then the source devices will *always* be checked.
|
||||
@@ -39,13 +39,13 @@ source_devices:
|
||||
vendor_id: "4001"
|
||||
product_id: "0428"
|
||||
handler: event*
|
||||
capability_map_id: ayaneo_mcu
|
||||
capability_map_id: ayaneo_mcu_standard
|
||||
- group: gamepad
|
||||
evdev:
|
||||
vendor_id: "045e"
|
||||
product_id: "028e"
|
||||
handler: event*
|
||||
capability_map_id: ayaneo_mcu_xbox
|
||||
capability_map_id: ayaneo_mcu_xbox_standard
|
||||
|
||||
# Optional configuration for the composite device
|
||||
options:
|
||||
Reference in New Issue
Block a user