Skip to content

feat: add new configuration for front buttons, more usable on landscape ccw#460

Merged
daveallie merged 1 commit intocrosspoint-reader:masterfrom
borisfaure:fix/invert-bottom-left-right-on-landscape-ccw
Jan 27, 2026
Merged

feat: add new configuration for front buttons, more usable on landscape ccw#460
daveallie merged 1 commit intocrosspoint-reader:masterfrom
borisfaure:fix/invert-bottom-left-right-on-landscape-ccw

Conversation

@borisfaure
Copy link
Contributor

@borisfaure borisfaure commented Jan 20, 2026

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

  • 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

switch (frontLayout) {
case CrossPointSettings::LEFT_RIGHT_BACK_CONFIRM:
return InputManager::BTN_LEFT;
return is_landscape_ccw ? InputManager::BTN_RIGHT : InputManager::BTN_LEFT;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@osteotek
Copy link
Member

@borisfaure
Copy link
Contributor Author

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.

@borisfaure borisfaure marked this pull request as draft January 21, 2026 11:38
@borisfaure borisfaure force-pushed the fix/invert-bottom-left-right-on-landscape-ccw branch from 0cc7f1b to d03a47e Compare January 21, 2026 23:34
@borisfaure borisfaure marked this pull request as ready for review January 21, 2026 23:34
@borisfaure borisfaure changed the title fix: invert bottom left/right buttons on landscape ccw feat: invert bottom left/right buttons on landscape ccw Jan 21, 2026
case CrossPointSettings::BACK_CONFIRM_RIGHT_LEFT:
return InputManager::BTN_LEFT;
case CrossPointSettings::BACK_CONFIRM_LEFT_RIGHT:
/* fall through */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
@borisfaure borisfaure force-pushed the fix/invert-bottom-left-right-on-landscape-ccw branch from d03a47e to 0a30a16 Compare January 22, 2026 09:10
@borisfaure borisfaure changed the title feat: invert bottom left/right buttons on landscape ccw feat: add new configuration for front buttons, more usable on landscape ccw Jan 23, 2026
@daveallie daveallie merged commit e858ebb into crosspoint-reader:master Jan 27, 2026
3 checks passed
Jessica765 pushed a commit to Jessica765/crosspoint-reader that referenced this pull request Feb 3, 2026
…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**_
Unintendedsideeffects pushed a commit to Unintendedsideeffects/crosspoint-reader that referenced this pull request Feb 17, 2026
…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**_
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants