Trigger Happy : hotkey daemon that operates on a system wide scale - leonkasovan/RG353P GitHub Wiki
Source: https://github.com/wertarbyte/triggerhappy/blob/master/thd.pod
Sample: https://github.com/wertarbyte/triggerhappy/blob/master/triggerhappy.conf.examples
Trace input event
thd --dump /dev/input/event*
Definition Event Keys
X: BTN_X
Y: BTN_WEST
A: BTN_B
B: BTN_GAMEPAD
L1: BTN_TL
R1: BTN_TR
L2: BTN_TL2
R2: BTN_TR2
F: BTN_MODE
Select: BTN_SELECT
Start: BTN_START
Button Thumb Left: BTN_THUMBL
Button Thumb Right: BTN_THUMBR
Setting Configuration
System Configuration: /etc/triggerhappy/triggers.d/multimedia_keys.conf
User Configuration: /userdata/system/configs/multimedia_keys.conf
BTN_MODE+BTN_THUMBL 1 /etc/init.d/S31emulationstation stop
BTN_MODE+BTN_THUMBR 1 /etc/init.d/S31emulationstation start
Key events carry the value 0 for a key being pressed and transmit the payload 1 when it is released; holding the key down constantly yields events with a value of 2.
Restart service
/etc/init.d/S50triggerhappy restart