AndroidClickFix#35
Open
ericbourque29 wants to merge 1 commit intojMonkeyEngine-Contributions:masterfrom
Open
Conversation
Replaced UP and DOWN with TAP in the TouchObserver to avoid double events in adroid.
Contributor
|
Which double events? You should get an event when you press and an event when you release... just like any other key or button. |
|
I suspect what @ericbourque29 was referring to is that in Android, not only will up and down events be fired, but also a tap event. However, the TouchObserver doesn't consume those, so they will be passed on to the scene behind your UI. And from your scene, if you want to react to tap events, you will receive them all regardless whether or not they landed in your UI first. (faced the same issue myself). |
|
Personally, I'd still consume UP and DOWN events, but also TAP events. |
Contributor
|
Yeah, I know this is years late by now... but I agree. UP and DOWN are still needed. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Replaced UP and DOWN with TAP in the TouchObserver to avoid double events in adroid.