* Unihertz devices have a dedicated PTT button, which I mapped to CAMERA, making it useful (kind of) by default and remappable via third-party apps. * Additionally, declare capacitive buttons as VIRTUAL so that vibration is applied when they are pressed.
14 lines
301 B
Plaintext
14 lines
301 B
Plaintext
# Keylayout for Unihertz devices with a dedicated PTT button
|
|
# Volume buttons
|
|
key 115 VOLUME_UP
|
|
key 114 VOLUME_DOWN
|
|
|
|
# Power button
|
|
key 116 POWER
|
|
|
|
# PTT - Remap to camera by default
|
|
# CAMERA is delivered to apps, so remapping via
|
|
# third-party apps is possible
|
|
key 249 CAMERA
|
|
key 250 CAMERA
|