2
0
mirror of https://github.com/koreader/koreader synced 2024-11-04 12:00:25 +00:00
koreader/frontend/device
NiLuJe 841e67e018 Input: Make sure GestureDetector:feedEvent will actually consume all
slots

This ensures we won't leave *any* slot in an undefined state because
we skipped parsing 'em because what we consumed first yielded a
gesture.

(In particular, this could leave a few slots dangling in the "hold"
state in corner cases involving spider-hand finger tapping ;p).

Cleans up the slot state clearing in GestureDetector to only clear the
necessary slots (e.g., two-finger gestures now only clear their own two
slots; and holds only clear their own slot).
The fact that every slot will be consumed ensures that every slot will
naturally get their contact up handled, which wasn't the case before,
hence those crappy workarounds.

As far as timerfd callbacks are concerned, this *does* introduce the
possibility of deadline collisions, so, do reimplement minimal safety
checks to ensure we run (and free) the right timerfd callback.
2022-08-16 18:09:46 +02:00
..
android userpatch: allow monkey-patching KOReader (#9104) 2022-06-25 22:46:43 +02:00
cervantes AutoSuspend: Some more fixes & cleanups (#9263) 2022-07-02 20:20:35 +02:00
dummy add dummy device & rename runtimectl:setDevice to runtimectl:init 2019-03-03 13:10:45 +01:00
generic ScreenSaver: On race-y platforms, only force a refresh on close if the 2022-08-16 18:09:46 +02:00
kindle ScreenSaver: On race-y platforms, only force a refresh on close if the 2022-08-16 18:09:46 +02:00
kobo Kobo: Handle the IR grid wakeup workaround on the Glo HD, too 2022-08-16 18:09:46 +02:00
pocketbook Add PocketBook Era (PB700) (#9365) 2022-07-23 15:29:09 +02:00
remarkable AutoSuspend: Some more fixes & cleanups (#9263) 2022-07-02 20:20:35 +02:00
sdl [fix, SDL] Time: fix crash when scrolling in continuous mode (#9314) 2022-07-09 22:47:10 +02:00
sony-prstux AutoSuspend: Some more fixes & cleanups (#9263) 2022-07-02 20:20:35 +02:00
devicelistener.lua Fullscreen refactor (#9237) 2022-06-24 23:19:38 +02:00
gesturedetector.lua Input: Make sure GestureDetector:feedEvent will actually consume all 2022-08-16 18:09:46 +02:00
input.lua Input: Make sure GestureDetector:feedEvent will actually consume all 2022-08-16 18:09:46 +02:00
key.lua
sysfs_light.lua Minor Lua I/O cleanups (#8921) 2022-03-19 23:57:31 +01:00
thirdparty.lua Revert "Hyphenation: add custom hyphenation rules (#7746)" (#7785) 2021-05-31 22:19:24 +02:00
wakeupmgr.lua Kindle: enable WakeupMgr & RTC support 2022-07-04 22:46:13 -04:00