Skip to content

Commit 91599ea

Browse files
committed
xpadneo: Map Share button to F12 by default
While desktop environments usually support mapping `KEY_RECORD`, most importantly Steam does not recognize that key. So let's change the driver to emit F12 instead which is the default screenshot key in the Steam client. This also seems to fix an issue with yet unknown cause: `KEY_RECORD` would emit pressing the key and then immediately emit a release event. With `KEY_F12` this properly emits one event on press, and emits a second event on release. Fixes: atar-axis#356 Signed-off-by: Kai Krakow <[email protected]>
1 parent a3cb20c commit 91599ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hid-xpadneo/src/xpadneo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ do { \
4949

5050
/* button aliases */
5151
#define BTN_PADDLES(b) (BTN_TRIGGER_HAPPY37+(b))
52-
#define BTN_SHARE KEY_RECORD
52+
#define BTN_SHARE KEY_F12
5353
#define BTN_XBOX BTN_MODE
5454

5555
/* module parameter "trigger_rumble_mode" */

0 commit comments

Comments
 (0)