Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inputs in dedicated Task #645

Merged
merged 13 commits into from
Jan 3, 2025
Merged

Inputs in dedicated Task #645

merged 13 commits into from
Jan 3, 2025

Conversation

bmorcelli
Copy link
Collaborator

Proposed Changes

  • Changed the functions checkPrevPress, checkSelPress, checkNextPress, checkEscPress and checkAnyKeyPress to volatile bool variables and made them run on a InputHandler function on a dedicated task.

  • Added debounce into the InputHandler, removing some delays from the code (the ones before and after loopOption callings.

  • Touch bar for CYD, Core2 and CoreS3 is now the whole screen (left side for prev, center for Select and right for Next, more options can be added now, if needed, like Esc btn as an [X] on screen)

Types of Changes

Structural

Verification

Overall speed might be improved in loopTask.

Testing

Need to test on all devices, can be tested in this flasher (using BetaRelease)

DO NOT MERGE YET, Please...

@rouing Can you have a look on it?

Inputs (chechSelPress and stuff) are checked in a specific task, running on background

Removed delay before and after loopOptions
Copy link
Contributor

@rouing rouing left a comment

Choose a reason for hiding this comment

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

Nice job
Although needs some adjustments, I still give my thumbs up.

@bmorcelli
Copy link
Collaborator Author

I've changed many thing already.. the crashes was due to stack size..

Next step will acommodate all keyboards into one code

bmorcelli and others added 8 commits January 2, 2025 08:23
Added a function to control the Input variables, now they "rearm" after read.

Fixed Restarts and some other changes

Fixed Keyboard to send Delete key and modifiers pr3y#594
Removed keyboard function from interface.cpp, all devices are now usinf the same function, easy to maintain

Remapped TouchArea for touchscreen devices.. now it is possible to use the touch area to escape some functions, go up/down/left/right and selec
@bmorcelli
Copy link
Collaborator Author

I believe it is good for merge now.. tested on all boards and its working good..
Now Touchscreen devices have this mapping:

                    Touch area Map
            _______________________________
            |   Esc   |   UP    |         |
            |_________|_________|         |
            |         |   Sel   |         |
            |         |_________|  Next   |
            |  Prev   |  Down   |         |
            |_________|_________|_________|
            |__Prev___|___Sel___|__Next___| 20 pixel touch area where the touchFooter is drawn

All tested and passed here

These libs are now being included in the specific environment, getting t
@pr3y pr3y merged commit 3e99279 into pr3y:main Jan 3, 2025
5 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.

3 participants