2
0
mirror of https://github.com/koreader/koreader synced 2024-11-10 01:10:34 +00:00
koreader/spec/unit
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
..
autofrontlight_spec.lua UIManager: get rid of self._running and self._run_forever (#9669) 2022-10-27 22:08:38 +02:00
autosuspend_spec.lua UIManager: get rid of self._running and self._run_forever (#9669) 2022-10-27 22:08:38 +02:00
background_runner_spec.lua UIManager: get rid of self._running and self._run_forever (#9669) 2022-10-27 22:08:38 +02:00
background_task_plugin_spec.lua UIManager: get rid of self._running and self._run_forever (#9669) 2022-10-27 22:08:38 +02:00
batterystat_spec.lua SystemStat: Show awake/suspend/standby breakdown in % (#9257) 2022-06-27 21:16:51 +02:00
benchmark.lua
cache_spec.lua
commonrequire.lua Assorted bag'o tweaks & fixes (#9569) 2022-10-02 03:01:49 +02:00
datetime_spec.lua Add datetime.lua 2022-12-06 17:36:08 +01:00
dbg_spec.lua
defaults_spec.lua Misc: Get rid of the legacy defaults.lua globals (#9546) 2022-09-28 01:10:50 +02:00
depgraph_spec.lua
device_spec.lua Input/Device: Refactor Gyro events handling (#9935) 2022-12-21 15:50:39 +01:00
docsettings_spec.lua
document_registry_spec.lua
document_spec.lua Misc: Get rid of the legacy defaults.lua globals (#9546) 2022-09-28 01:10:50 +02:00
eink_optimization_spec.lua
exporter_plugin_main_spec.lua Refactor exporter.koplugin (#8944) 2022-05-06 22:44:28 +02:00
filemanager_spec.lua
filemanagerconverter_spec.lua
focusmanager_spec.lua InputContainer: Fall cleanup ;). 2022-10-29 22:55:20 +02:00
font_spec.lua
frontlight_spec.lua
gesturedetector_spec.lua Input/Device: Refactor Gyro events handling (#9935) 2022-12-21 15:50:39 +01:00
gesturerange_spec.lua
gettext_spec.lua
hook_container_spec.lua
httpclient_spec.lua UIManager: get rid of self._running and self._run_forever (#9669) 2022-10-27 22:08:38 +02:00
imagewidget_spec.lua "Fix" the ImageWidget test 2022-06-13 02:37:01 +02:00
input_spec.lua Input: Actually fix the timer double-free 2022-08-16 18:09:46 +02:00
inputtext_spec.lua You're doing it wrong, inputtext_spec... 2022-10-06 19:28:26 +02:00
koptinterface_spec.lua Clarify our OOP semantics across the codebase (#9586) 2022-10-06 02:14:48 +02:00
kosync_spec.lua
luadata_spec.lua Misc: Get rid of the legacy defaults.lua globals (#9546) 2022-09-28 01:10:50 +02:00
luasettings_spec.lua
menu_table_screen_color_spec.lua
menusorter_spec.lua
mock_time_spec.lua
mock_time.lua [timeval] RIP on All Saints Day (#9686) 2022-11-01 00:03:22 +01:00
network_manager_spec.lua
networksetting_spec.lua
nickel_conf_spec.lua
opds_spec.lua OPDSbrowser refactoring (#9703) 2022-10-29 19:06:42 +02:00
optmath_spec.lua
persist_spec.lua Persist: unbreak serialize for serpent 2022-10-06 19:28:26 +02:00
quickstart_spec.lua
random_spec.lua
readerbookmark_spec.lua
readerdictionary_spec.lua
readerfooter_spec.lua [UIManager] Reverse order of _task_queue (#9706) 2022-11-02 20:08:15 +01:00
readerhighlight_spec.lua Clarify our OOP semantics across the codebase (#9586) 2022-10-06 02:14:48 +02:00
readerlink_spec.lua UIManager: get rid of self._running and self._run_forever (#9669) 2022-10-27 22:08:38 +02:00
readerpaging_spec.lua [StatusBar] Allow status bars to be repainted if they are not covered (#9768) 2022-11-20 05:33:44 +01:00
readerrolling_spec.lua Input/Device: Refactor Gyro events handling (#9935) 2022-12-21 15:50:39 +01:00
readersearch_spec.lua
readertoc_spec.lua
readerui_spec.lua
readerview_spec.lua Clarify our OOP semantics across the codebase (#9586) 2022-10-06 02:14:48 +02:00
readhistory_spec.lua ReadHistory: refactoring with binary search (#9603) 2022-10-25 12:15:59 +02:00
screenshoter_spec.lua Input/Device: Refactor Gyro events handling (#9935) 2022-12-21 15:50:39 +01:00
size_spec.lua
spore_spec.lua UIManager: get rid of self._running and self._run_forever (#9669) 2022-10-27 22:08:38 +02:00
switch_plugin_spec.lua
taskqueue_bench.lua [UIManager] Reverse order of _task_queue (#9706) 2022-11-02 20:08:15 +01:00
textboxwidget_spec.lua
time_spec.lua Optimization: Use constant folding for divisions not a power of two (#9609) 2022-10-10 22:21:27 +02:00
toggleswitch_spec.lua
touch_probe_spec.lua
translator_spec.lua
uimanager_bench.lua [UIManager] Reverse order of _task_queue (#9706) 2022-11-02 20:08:15 +01:00
uimanager_spec.lua [UIManager] Reverse order of _task_queue (#9706) 2022-11-02 20:08:15 +01:00
util_spec.lua Add datetime.lua 2022-12-06 17:36:08 +01:00
version_spec.lua
wakeupmgr_spec.lua Clarify our OOP semantics across the codebase (#9586) 2022-10-06 02:14:48 +02:00
widget_inputcontainer_spec.lua
widget_menu_spec.lua
widget_progresswidget_spec.lua
wikipedia_spec.lua