feat: add new configuration for front buttons, more usable on landscape ccw#460
Conversation
src/MappedInputManager.cpp
Outdated
| switch (frontLayout) { | ||
| case CrossPointSettings::LEFT_RIGHT_BACK_CONFIRM: | ||
| return InputManager::BTN_LEFT; | ||
| return is_landscape_ccw ? InputManager::BTN_RIGHT : InputManager::BTN_LEFT; |
There was a problem hiding this comment.
Could this be configurable in the settings instead? I use CCW too, but am now used to pressing "up" to go to the next page when holding the device with the buttons on the right. Would rather this be an option than have it be forcibly changed.
There was a problem hiding this comment.
Agreed. I have my Kobo Libra 2 page turn buttons set to "inverted" and do not want to deal with different button orderings on each device.
|
This can be done as another option for front button layout here - https://github.com/crosspoint-reader/crosspoint-reader/blob/master/src/CrossPointSettings.h#L35 |
You're right. I'll do it that way tonight. |
0cc7f1b to
d03a47e
Compare
| case CrossPointSettings::BACK_CONFIRM_RIGHT_LEFT: | ||
| return InputManager::BTN_LEFT; | ||
| case CrossPointSettings::BACK_CONFIRM_LEFT_RIGHT: | ||
| /* fall through */ |
There was a problem hiding this comment.
Not sure all these comments add much, but otherwise looks good to me 😁👍🏻
This can feel more natural when using the Landscape CCW orientation. Update the User Guide. Also add "fall through" markers for GCC's -Wimplicit-fallthrough and to improve readability. Discussion: crosspoint-reader#449
d03a47e to
0a30a16
Compare
…pe ccw (crosspoint-reader#460) When reading on Landscape Counter ClockWise mode, the left/right button appear inverted: the upper button (left) goes down and the lower button (right) goes up. Discussion: crosspoint-reader#449 ## Summary * **What is the goal of this PR?** (e.g., Implements the new feature for file uploading.) Add a new configuration for the front buttons: Back, Confirm, Right, Left --- ### AI Usage While CrossPoint doesn't have restrictions on AI tools in contributing, please be transparent about their usage as it helps set the right context for reviewers. Did you use AI tools to help write this code? _**NO**_
…pe ccw (crosspoint-reader#460) When reading on Landscape Counter ClockWise mode, the left/right button appear inverted: the upper button (left) goes down and the lower button (right) goes up. Discussion: crosspoint-reader#449 ## Summary * **What is the goal of this PR?** (e.g., Implements the new feature for file uploading.) Add a new configuration for the front buttons: Back, Confirm, Right, Left --- ### AI Usage While CrossPoint doesn't have restrictions on AI tools in contributing, please be transparent about their usage as it helps set the right context for reviewers. Did you use AI tools to help write this code? _**NO**_
When reading on Landscape Counter ClockWise mode, the left/right button appear inverted: the upper button (left) goes down and the lower button (right) goes up.
Discussion: #449
Summary
Add a new configuration for the front buttons: Back, Confirm, Right, Left
AI Usage
While CrossPoint doesn't have restrictions on AI tools in contributing, please be transparent about their usage as it
helps set the right context for reviewers.
Did you use AI tools to help write this code? NO