mirror of
https://github.com/koreader/koreader.git
synced 2026-11-28 08:17:00 +00:00
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>