Change bind hold default on Android #17704
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Due to touchscreen quick tap function, binding runs into problems with the default setting of
bind_hold = 0
that works well on other platforms. Using a nonzero value avoids that problem.Some investigation notes are in the (now closed) #17157 .
Implementing #17644 would be more complex - bind_hold is currently an uint, so it can't be assigned a value of 0.1 as-is, and changing the type of existing config keys is a no-no, so it would need to be stored under a new name with some additional logic. Extra logic for the value 0 in case of Android is again doable, but would complicate the code more, and it needs more testing than what I am prepared for currently.
This PR will enhance the situation, while the negative effects are quite small - few second slower binding (which should be done zero times in case of a known controller that has autoconfig, and one time per RetroArch install in case of random controller). The other negative effect (not being able to bind some faulty controllers) should not occur any more since #16256 .
Related Issues
Closes #16217
Related Pull Requests
#15909
Reviewers
@sonninnos