-
Notifications
You must be signed in to change notification settings - Fork 323
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This change did not make sense to be part of the web config modificat…
…ion.
- Loading branch information
Showing
1 changed file
with
1 addition
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ddf59c3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we don't make this change, the Hotkey F1 will display 'TouchPad+Options' when the Touchpad button and Share button are swapped on WebConfig. However, we still need to use the Share + Options combination to activate Hotkey F1. Making this change can ensure that the Hotkey F1 is consistent with the webconfig.
Another reason why I suggest this change is that regardless of whether the buttons are swapped or not, making this change will ensure that the Hotkey F1 uses PIN16 and PIN17 on the GP2040 to activate. This consistency applies to modes other than the PS4 mode.
Also, we can use this code after line 123 to instead. It is cleaner.
ddf59c3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see now that what you are describing is true because of this code:
I think this is also questionable, but now I understand why this is so confusing. IMO S1 should always be S1. I think we should move the
switchTpShareForDs4
check intoGamepad::getPS4Report()
, and then the feature works and S1 is always S1. (I feel this way because the hotkey rewrite is going to use the button masks directly and there's no great way to encapsulate this toggle there.)ddf59c3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I like this solution a lot, move our specialized switch over to the getPS4Report() so it doesn't impact anything else.
ddf59c3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Opened #329 for this.