pmaports/main/postmarketos-base/rootfs-lib-udev-rules.d-20-tm2-touchkey-input.rules

3 lines
192 B
Text

# map tm2-touchkey to KEY_MENU and KEY_BACK
SUBSYSTEM=="input", KERNEL=="event*", DRIVERS=="tm2-touchkey", \
ENV{KEYBOARD_KEY_00}="menu", ENV{KEYBOARD_KEY_01}="back", RUN{builtin}+="keyboard"