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

Unable to get location for pointer Touch(0) #316

Closed
favilo opened this issue Feb 27, 2024 · 3 comments
Closed

Unable to get location for pointer Touch(0) #316

favilo opened this issue Feb 27, 2024 · 3 comments

Comments

@favilo
Copy link

favilo commented Feb 27, 2024

I've been attempting to use the Pointer<Up> and Pointer<Down> events to handle touches on a mobile mancala game.

With the mouse, click events are working fine, but with touch input, I have to wait about 1 second for the Pointer<Up> event to be registered properly.

Here is the code I'm attempting to use.

I can see the Pointer<Down> pretty much every time, but if I let go too early, I get the following error:

Unable to get location for pointer Touch(0)

Clearly this is happening in pointer_events. But how can I ensure that the PointerLocation gets updated properly before the second is up?

@aevyrie
Copy link
Owner

aevyrie commented Mar 3, 2024

but if I let go too early

My best guess is it's caused by bevy's lack of event ordering within a frame.

@Cyannide
Copy link

Cyannide commented May 6, 2024

AFAIK, this is fixed by #319

@aevyrie
Copy link
Owner

aevyrie commented Jun 12, 2024

Fixed by #319

@aevyrie aevyrie closed this as completed Jun 12, 2024
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

No branches or pull requests

3 participants