Skip to content

Commit 28163d3

Browse files
committed
Half baked mouse wheel events
Signed-off-by: Luke Jones <[email protected]>
1 parent 97761d0 commit 28163d3

File tree

7 files changed

+1413
-1516
lines changed

7 files changed

+1413
-1516
lines changed

rootfs/usr/share/inputplumber/capability_maps/zone_type1.yaml

+74-91
Original file line numberDiff line numberDiff line change
@@ -13,97 +13,80 @@ id: zone1
1313

1414
# List of mapped events that are activated by a specific set of activation keys.
1515
mapping:
16-
- name: ZOTAC (shortpress)
17-
source_events:
18-
- evdev:
19-
event_type: KEY
20-
event_code: KEY_F16
21-
value_type: button
22-
target_event:
23-
gamepad:
24-
button: Guide
25-
- name: MORE
26-
source_events:
27-
- evdev:
28-
event_type: KEY
29-
event_code: KEY_F17
30-
value_type: button
31-
target_event:
32-
gamepad:
33-
button: QuickAccess
34-
- name: HOME (shortpress)
35-
source_events:
36-
- evdev:
37-
event_type: KEY
38-
event_code: KEY_F18
39-
value_type: button
40-
target_event:
41-
gamepad:
42-
button: QuickAccess2
43-
- name: HOME (longpress)
44-
source_events:
45-
- evdev:
46-
event_type: KEY
47-
event_code: KEY_F19
48-
value_type: button
49-
target_event:
50-
gamepad:
51-
button: Keyboard
52-
- name: Left Paddle
53-
source_events:
54-
- evdev:
55-
event_type: KEY
56-
event_code: KEY_HOME
57-
value_type: button
58-
target_event:
59-
gamepad:
60-
button: LeftPaddle1
61-
- name: Right Paddle
62-
source_events:
63-
- evdev:
64-
event_type: KEY
65-
event_code: KEY_END
66-
value_type: button
67-
target_event:
68-
gamepad:
69-
button: RightPaddle1
70-
- name: Left Dial Counter-clockwise
71-
source_events:
72-
- evdev:
73-
event_type: REL
74-
event_code: REL_HWHEEL
75-
value_type: joystick_x
76-
target_event:
77-
keyboard: KeyVolumeDown
78-
- name: Left Dial Clockwise
79-
source_events:
80-
- evdev:
81-
event_type: REL
82-
event_code: REL_HWHEEL
83-
value_type: joystick_x
84-
target_event:
85-
keyboard: KeyVolumeUp
86-
- name: Right Dial Counter-clockwise
87-
source_events:
88-
- evdev:
89-
event_code: REL_WHEEL
90-
event_type: REL
91-
value_type: joystick_x
92-
target_event:
93-
gamepad:
94-
dial:
95-
name: RightStickDial
96-
direction: clockwise
97-
- name: Right Dial Clockwise
98-
source_events:
99-
- evdev:
100-
event_code: REL_WHEEL
101-
event_type: REL
102-
value_type: joystick_x
103-
target_event:
104-
dial:
105-
name: RightStickDial
106-
direction: counter_clockwise
16+
- name: ZOTAC (shortpress)
17+
source_events:
18+
- evdev:
19+
event_type: KEY
20+
event_code: KEY_F16
21+
value_type: button
22+
target_event:
23+
gamepad:
24+
button: Guide
25+
- name: MORE
26+
source_events:
27+
- evdev:
28+
event_type: KEY
29+
event_code: KEY_F17
30+
value_type: button
31+
target_event:
32+
gamepad:
33+
button: QuickAccess
34+
- name: HOME (shortpress)
35+
source_events:
36+
- evdev:
37+
event_type: KEY
38+
event_code: KEY_F18
39+
value_type: button
40+
target_event:
41+
gamepad:
42+
button: QuickAccess2
43+
- name: HOME (longpress)
44+
source_events:
45+
- evdev:
46+
event_type: KEY
47+
event_code: KEY_F19
48+
value_type: button
49+
target_event:
50+
gamepad:
51+
button: Keyboard
52+
- name: Left Paddle
53+
source_events:
54+
- evdev:
55+
event_type: KEY
56+
event_code: KEY_HOME
57+
value_type: button
58+
target_event:
59+
gamepad:
60+
button: LeftPaddle1
61+
- name: Right Paddle
62+
source_events:
63+
- evdev:
64+
event_type: KEY
65+
event_code: KEY_END
66+
value_type: button
67+
target_event:
68+
gamepad:
69+
button: RightPaddle1
70+
- name: Left Dial
71+
source_events:
72+
- evdev:
73+
event_type: REL
74+
event_code: REL_HWHEEL
75+
value_type: joystick_x
76+
target_event:
77+
gamepad:
78+
dial:
79+
name: LeftStickDial
80+
- name: Right Dial
81+
source_events:
82+
- evdev:
83+
event_code: REL_WHEEL
84+
event_type: REL
85+
value_type: joystick_x
86+
target_event:
87+
gamepad:
88+
dial:
89+
name: RightStickDial
10790

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

rootfs/usr/share/inputplumber/profiles/default.yaml

+66-65
Original file line numberDiff line numberDiff line change
@@ -16,68 +16,69 @@ name: Default
1616

1717
# Profile mappings
1818
mapping:
19-
- name: LeftTop
20-
source_event:
21-
gamepad:
22-
button: LeftTop
23-
target_events:
24-
- gamepad:
25-
button: LeftPaddle1
26-
- name: RightTop
27-
source_event:
28-
gamepad:
29-
button: RightTop
30-
target_events:
31-
- gamepad:
32-
button: RightPaddle1
33-
- name: Keyboard
34-
source_event:
35-
gamepad:
36-
button: Keyboard
37-
target_events:
38-
- gamepad:
39-
button: Guide
40-
- gamepad:
41-
button: North
42-
- name: QuickAccess2
43-
source_event:
44-
gamepad:
45-
button: QuickAccess2
46-
target_events:
47-
- gamepad:
48-
button: Screenshot
49-
- name: Left Dial Counter-clockwise
50-
source_event:
51-
gamepad:
52-
dial:
53-
name: LeftStick
54-
direction: counter-clockwise
55-
target_events:
56-
- mouse:
57-
button: "WheelLeft"
58-
- name: Left Dial Clockwise
59-
source_event:
60-
gamepad:
61-
dial:
62-
name: LeftStick
63-
direction: clockwise
64-
target_events:
65-
- mouse:
66-
button: "WheelRight"
67-
- name: Right Dial Counter-clockwise
68-
source_event:
69-
gamepad:
70-
dial:
71-
name: RightStick
72-
direction: counter-clockwise
73-
target_events:
74-
- mouse:
75-
button: "WheelUp"
76-
- name: Right Dial Clockwise
77-
source_event:
78-
dial:
79-
name: RightStick
80-
direction: clockwise
81-
target_events:
82-
- mouse:
83-
button: "WheelDown"
19+
- name: LeftTop
20+
source_event:
21+
gamepad:
22+
button: LeftTop
23+
target_events:
24+
- gamepad:
25+
button: LeftPaddle1
26+
- name: RightTop
27+
source_event:
28+
gamepad:
29+
button: RightTop
30+
target_events:
31+
- gamepad:
32+
button: RightPaddle1
33+
- name: Keyboard
34+
source_event:
35+
gamepad:
36+
button: Keyboard
37+
target_events:
38+
- gamepad:
39+
button: Guide
40+
- gamepad:
41+
button: North
42+
- name: QuickAccess2
43+
source_event:
44+
gamepad:
45+
button: QuickAccess2
46+
target_events:
47+
- gamepad:
48+
button: Screenshot
49+
- name: Left Dial Counter-clockwise
50+
source_event:
51+
gamepad:
52+
dial:
53+
name: LeftStickDial
54+
direction: counter-clockwise
55+
target_events:
56+
- mouse:
57+
button: "WheelLeft"
58+
- name: Left Dial Clockwise
59+
source_event:
60+
gamepad:
61+
dial:
62+
name: LeftStickDial
63+
direction: clockwise
64+
target_events:
65+
- mouse:
66+
button: "WheelRight"
67+
- name: Right Dial Counter-clockwise
68+
source_event:
69+
gamepad:
70+
dial:
71+
name: RightStickDial
72+
direction: counter-clockwise
73+
target_events:
74+
- mouse:
75+
button: "WheelUp"
76+
- name: Right Dial Clockwise
77+
source_event:
78+
gamepad:
79+
dial:
80+
name: RightStickDial
81+
direction: clockwise
82+
target_events:
83+
- mouse:
84+
button: "WheelDown"

0 commit comments

Comments
 (0)