2
0
mirror of https://github.com/koreader/koreader synced 2024-10-31 21:20:20 +00:00
koreader/plugins/backgroundrunner.koplugin
NiLuJe 3274183466 Minor Input & TimeVal cleanups
* Input: Don't create a new TimeVal object for input frame timestamps, just promote our existing table by assigning it the `TimeVal` metatable.
* TimeVal: Export (const) `zero` & `huge` TimeVal objects, because they're common enough in our codebase. (NOTE: not actually const, that's a Lua 5.4 feature ;p).
* GestureDetector: Explain the behavior of the `last_tevs` & `first_tevs` tables, and why one needs a new object and not the other.
* Speaking of, simplify the copy method for `first_tevs`, because it doesn't need to create a new TimeVal object, we can just reference the original, it's unique and re-assigned for each frame.
2021-04-16 22:12:15 +02:00
..
_meta.lua [Fix] Don't load disabled plugins (#4169) 2018-08-18 20:41:37 +02:00
commandrunner.lua The great Input/GestureDetector/TimeVal spring cleanup (a.k.a., a saner main loop) (#7415) 2021-03-30 02:57:59 +02:00
luawrapper.sh [CI] Add curly braces check (#5809) 2020-02-02 20:35:21 +01:00
main.lua Minor Input & TimeVal cleanups 2021-04-16 22:12:15 +02:00
wrapper.sh [CI] Add curly braces check (#5809) 2020-02-02 20:35:21 +01:00