mirror of
https://github.com/koreader/koreader
synced 2024-11-13 19:11:25 +00:00
3274183466
* 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. |
||
---|---|---|
.. | ||
_meta.lua | ||
commandrunner.lua | ||
luawrapper.sh | ||
main.lua | ||
wrapper.sh |