2
0
mirror of https://github.com/koreader/koreader synced 2024-11-11 19:11:14 +00:00
koreader/frontend/apps/reader/modules
NiLuJe 788ccac561
Input/Device: Refactor Gyro events handling (#9935)
* Get rid of the `canToggleGSensor` Device cap, it's now mandatory for `hasGSensor` devices. (This means Kindles can now toggle the gyro, fix #9136).
* This also means that `Device:toggleGSensor` is now implemented by `Generic`.
* Update the Screen & Gyro rotation constants to be clearer (c.f., https://github.com/koreader/koreader-base/pull/1568) (/!\ This might conceivably break some `rotation_map` user-patches).
* Input: Move the platform-specific gyro handling to Device implementations, and let Input only handle a single, custom protocol (`EV_MSC:MSC_GYRO`).
* Input: Refine the `rotation_map` disable method implemented in 43b021d37c. Instead of directly poking at the internal field, use a new method, `disableRotationMap` (/!\ Again, this might break some `rotation_map` user-patches).
* Input: Minor tweaks to event adjust hooks to make them more modular, allowing the Kobo implementation to build and use a single composite hook. API compatibility maintained with wrappers.
2022-12-21 15:50:39 +01:00
..
readeractivityindicator.lua Misc: Get rid of the legacy defaults.lua globals (#9546) 2022-09-28 01:10:50 +02:00
readerback.lua InputContainer/FocusManager: Simplify key_events clearing on unplug 2022-11-02 03:48:39 +01:00
readerbookmark.lua Statistics: show correct number of notes in a book (#9928) 2022-12-18 18:04:00 +02:00
readerconfig.lua InputContainer/FocusManager: Simplify key_events clearing on unplug 2022-11-02 03:48:39 +01:00
readercoptlistener.lua [StatusBar] Allow status bars to be repainted if they are not covered (#9768) 2022-11-20 05:33:44 +01:00
readercropping.lua Clarify our OOP semantics across the codebase (#9586) 2022-10-06 02:14:48 +02:00
readerdevicestatus.lua [StatusBar] Allow status bars to be repainted if they are not covered (#9768) 2022-11-20 05:33:44 +01:00
readerdictionary.lua DictQuickLookup: The window_list array needs to be a static class member 2022-10-09 05:30:28 +02:00
readerdogear.lua Dispatcher: avoid multiple cre rerenderings when many settings changed (#9651) 2022-10-25 13:16:01 +02:00
readerflipping.lua ReaderHighlight: new Select mode icon (#9869) 2022-12-11 09:55:47 +01:00
readerfont.lua TouchMenu: tweak menu search (#9926) 2022-12-18 01:25:41 +01:00
readerfooter.lua Footer: some menu items rewording (#9915) 2022-12-16 00:44:29 +01:00
readergoto.lua Clarify our OOP semantics across the codebase (#9586) 2022-10-06 02:14:48 +02:00
readerhighlight.lua Statistics: show correct number of notes in a book (#9928) 2022-12-18 18:04:00 +02:00
readerhinting.lua Clarify our OOP semantics across the codebase (#9586) 2022-10-06 02:14:48 +02:00
readerkoptlistener.lua readerkoptlistener: simplify zoom mode validation 2022-10-29 17:48:21 +02:00
readerlink.lua ReaderLink: allow buttons to be added to the External link dialog (#9746) 2022-12-11 16:52:40 +01:00
readermenu.lua TouchMenu: tweak menu search (#9926) 2022-12-18 01:25:41 +01:00
readerpagemap.lua Clarify our OOP semantics across the codebase (#9586) 2022-10-06 02:14:48 +02:00
readerpaging.lua InputContainer/FocusManager: Simplify key_events clearing on unplug 2022-11-02 03:48:39 +01:00
readerpanning.lua InputContainer/FocusManager: Simplify key_events clearing on unplug 2022-11-02 03:48:39 +01:00
readerrolling.lua InputContainer/FocusManager: Simplify key_events clearing on unplug 2022-11-02 03:48:39 +01:00
readerrotation.lua InputContainer/FocusManager: Simplify key_events clearing on unplug 2022-11-02 03:48:39 +01:00
readerscrolling.lua Optimization: Use constant folding for divisions not a power of two (#9609) 2022-10-10 22:21:27 +02:00
readersearch.lua Clarify our OOP semantics across the codebase (#9586) 2022-10-06 02:14:48 +02:00
readerstatus.lua Reader: add open next file in folder to Dispatcher (#9916) 2022-12-14 20:40:24 +01:00
readerstyletweak.lua Reader style tweaks: register in Dispatcher manually (#9816) 2022-11-22 13:46:44 +01:00
readerthumbnail.lua ReaderHighlight: pdf multi-page highlights (#9850) 2022-12-02 20:22:27 +02:00
readertoc.lua Fix page stats messed up after rerendering (#9775) 2022-11-11 21:43:27 +01:00
readertypeset.lua Clarify our OOP semantics across the codebase (#9586) 2022-10-06 02:14:48 +02:00
readertypography.lua Clarify our OOP semantics across the codebase (#9586) 2022-10-06 02:14:48 +02:00
readeruserhyph.lua Clarify our OOP semantics across the codebase (#9586) 2022-10-06 02:14:48 +02:00
readerview.lua Input/Device: Refactor Gyro events handling (#9935) 2022-12-21 15:50:39 +01:00
readerwikipedia.lua DictQuickLookup: The window_list array needs to be a static class member 2022-10-09 05:30:28 +02:00
readerzooming.lua InputContainer/FocusManager: Simplify key_events clearing on unplug 2022-11-02 03:48:39 +01:00