2022-06-05 17:18:58 +00:00
|
|
|
# map tm2-touchkey to KEY_MENU and KEY_BACK (main variant)
|
|
|
|
SUBSYSTEM=="input", KERNEL=="event*", DRIVERS=="tm2-touchkey", ATTRS{name}!="midas-touchkey", \
|
2022-03-03 15:50:53 +00:00
|
|
|
ENV{KEYBOARD_KEY_00}="menu", ENV{KEYBOARD_KEY_01}="back", RUN{builtin}+="keyboard"
|
2022-06-05 17:18:58 +00:00
|
|
|
|
|
|
|
# (udev rule for mapping midas variants is unnecessary because the default key mapping is correct)
|
2024-07-17 13:32:28 +00:00
|
|
|
|
|
|
|
# prevent from getting woken up by capacitive back/menu buttons on
|
|
|
|
# certain Android devices (mostly Samsung)
|
|
|
|
SUBSYSTEM=="input", KERNEL=="event*", DRIVERS=="tm2-touchkey", \
|
|
|
|
ENV{GM_WAKEUP_KEY_139}="0", ENV{GM_WAKEUP_KEY_158}="0"
|