2
0
mirror of https://github.com/koreader/koreader synced 2024-11-04 12:00:25 +00:00
koreader/frontend/ui/data
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
..
keyboardlayouts [i18n] Fix Arabic translations (#9857) 2022-12-02 18:39:47 +01:00
creoptions.lua Input/Device: Refactor Gyro events handling (#9935) 2022-12-21 15:50:39 +01:00
css_tweaks.lua Style tweaks: add In-page footnote font size and fix-up tweaks 2022-07-07 00:32:07 +02:00
dictionaries.lua Add dictionaries for languages with over 1000 entries on Wiktionary (#9767) 2022-11-14 22:59:35 +01:00
koptoptions.lua Input/Device: Refactor Gyro events handling (#9935) 2022-12-21 15:50:39 +01:00
onetime_migration.lua OTM: Handle syntax errors at *both* stages when migrating 2022-10-29 22:55:20 +02:00
optionsutil.lua Optimization: Use constant folding for divisions not a power of two (#9609) 2022-10-10 22:21:27 +02:00
settings_migration.lua Centralize one time migration code after updates (#7531) 2021-04-13 17:54:11 +02:00