Skip to content

Conversation

NickeZ
Copy link
Collaborator

@NickeZ NickeZ commented Sep 30, 2025

based on #1607

@NickeZ NickeZ requested a review from benma September 30, 2025 12:15
@NickeZ NickeZ force-pushed the maint/reduce-events-merge-sliders branch 4 times, most recently from ac7d972 to 6d12349 Compare September 30, 2025 13:08
@NickeZ NickeZ force-pushed the maint/reduce-events-merge-sliders branch 4 times, most recently from 3bcef19 to 88c6c5c Compare October 1, 2025 08:18
Refactor code to get rid of more events. Inline the event slider data
into the event.
@NickeZ NickeZ force-pushed the maint/reduce-events-merge-sliders branch from 88c6c5c to 65f5b52 Compare October 1, 2025 08:32
Copy link
Collaborator

@benma benma left a comment

Choose a reason for hiding this comment

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

utACK, very nice!

case EVENT_TOP_CONTINUOUS_TAP:
if (ks_data->location == top_slider && slider_data->position > SLIDER_POSITION_ONE_THIRD &&
slider_data->position <= SLIDER_POSITION_TWO_THIRD) {
case EVENT_CONTINUOUS_TAP:
Copy link
Collaborator

Choose a reason for hiding this comment

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

just remove ks_data->location? it is always top_slider, and the event handling wouldn't even work if it was bottom_slider. (separate commit please if you do it)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done as separate commit

@NickeZ NickeZ requested a review from benma October 1, 2025 09:45
The keyboard switcher is only used from the top so remove the option to
create it in the bottom location. This simplifies the event hander.
@NickeZ NickeZ force-pushed the maint/reduce-events-merge-sliders branch from a771c76 to 69f124b Compare October 1, 2025 09:48
@NickeZ NickeZ merged commit 9282b27 into BitBoxSwiss:master Oct 1, 2025
32 checks passed
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.

2 participants