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

Add a hotkey to cycle between profiles. #1031

Merged
merged 7 commits into from
Jun 3, 2024

Conversation

MechLizard
Copy link
Contributor

Added a hotkey option called "Next Profile". When assigned and pressed cycles to the next profile so that a button doesn't need to be assigned to each profile.

For example, if on Profile 1 it changes to Profile 2, then to 3, then to 4, then back to 1.

I removed lastAction = HOTKEY_NONE; from gamepad.cpp since it is already assigned on initialization in gamepad.h and seems to only cause hotkeys that use userRequestedReinit = true; to trigger rapidly while the button is held down.

For German and Portuguese translations, I had some friends that speak those languages confirm that they are correct translations. However, I used Chat GPT to get the simplified Chinese Translation. That should be considered a placeholder until someone that knows the language can take a look at it.

Resolves #1016

@mikepparks
Copy link
Contributor

Going to ask that we split this into two PRs to separate contexts. Locale changes go to a separate PR from functional ones. Also, no AI translations. Thanks.

Copy link
Contributor

@bsstephan bsstephan left a comment

Choose a reason for hiding this comment

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

I have left review comments, in addition to echoing mikepparks's.

proto/enums.proto Outdated Show resolved Hide resolved
src/gamepad.cpp Show resolved Hide resolved
headers/storagemanager.h Outdated Show resolved Hide resolved
www/src/Pages/SettingsPage.jsx Outdated Show resolved Hide resolved
@MechLizard
Copy link
Contributor Author

I have removed the localization to add to another pull request if this one is approved as requested by mikepparks and bsstephan.

I have also fixed the spacing and enum issues that mikepparks brought up.

I believe that resolves everything mentioned. But I'd be happy to take another look if there is anything else out of line.

@bsstephan
Copy link
Contributor

My review is satisfied, looks good to me.

Copy link
Contributor

@arntsonl arntsonl left a comment

Choose a reason for hiding this comment

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

Looks good!

@arntsonl arntsonl merged commit a88eef8 into OpenStickCommunity:main Jun 3, 2024
39 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.

Request: add hotkey function to cycle through profiles
4 participants