Files
koreader/frontend/device
Lucas Zampieri 9a5e475266 kindle: only translate gyro events coming from the accelerometer (#15635)
The gyro translation hooks run on events from every open input fd, so
now that ExternalKeyboard can attach keyboards on Kindle (#15248), a
hotplugged device that reports EV_ABS:ABS_PRESSURE (e.g. a keyboard
with a digitizer collection in its HID descriptor) can flip the screen
into the opposite landscape, bypassing both rotation locks (the
gsensor lock only checks the orientation axis, and both landscape
modes share it).

Remember the fds opened by the rotation device scan and have the hooks
ignore ABS_PRESSURE events from any other fd. ev.fd requires the
koreader-base counterpart; until the base bump this is a no-op.

Signed-off-by: Lucas Zampieri <lcasmz54@gmail.com>
2026-08-02 22:03:58 +02:00
..
2026-08-02 21:46:38 +02:00
2026-07-29 18:20:45 +02:00
2026-07-11 08:55:29 +02:00
2024-09-24 16:08:58 +02:00
2026-07-11 08:55:29 +02:00