feat(ux): page turning on button pressed if long-press chapter skip is disabled (#451)

## Summary

* If long-press chapter skip is disabled, turn pages on button pressed,
not released
* Makes page turning snappier
* Refactors MappedInputManager for readability

---

### AI Usage

Did you use AI tools to help write this code? _**< PARTIALLY>**_

---------

Co-authored-by: Dave Allie <dave@daveallie.com>
This commit is contained in:
Arthur Tazhitdinov
2026-01-27 17:53:13 +05:00
committed by GitHub
parent e9c2fe1c87
commit 49190cca6d
5 changed files with 98 additions and 100 deletions

View File

@@ -25,5 +25,6 @@ class MappedInputManager {
private:
InputManager& inputManager;
decltype(InputManager::BTN_BACK) mapButton(Button button) const;
bool mapButton(Button button, bool (InputManager::*fn)(uint8_t) const) const;
};