You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
asafigan opened this issue
Apr 23, 2022
· 5 comments
Labels
A-InputPlayer input via keyboard, mouse, gamepad, and moreC-BugAn unexpected or incorrect behaviorO-AndroidSpecific to the Android mobile operating systemO-WebSpecific to web (WASM) builds
Mouse position changes only at the start of a touch. I would like touch events rather than mouse position because I want to handle multiple fingers at the same time.
The text was updated successfully, but these errors were encountered:
This is rooted in winit. rust-windowing/winit#2188 was attempted to merge yesterday, so we should see a fix soon. Hopefully Bevy is ready.
A post here gives a rough example of how to get around this, but looks like it needs some hand rolled JS interop.
The solution I concocted was to implement touch events in JavaScript, collect the touch data and let Rust ‘pop’ the touch events - and then map these events to my input system.
What's the status of this issue? The touch on web platform doesn't seem to be working out of the box in Bevy, but the winit PR is merged and the corresponding issue is closed as fixed. Or is it suppose to work and I'm just doing something wrong in my code?
A-InputPlayer input via keyboard, mouse, gamepad, and moreC-BugAn unexpected or incorrect behaviorO-AndroidSpecific to the Android mobile operating systemO-WebSpecific to web (WASM) builds
Bevy version
0.7
Operating system & version
Chrome 100 on Android 12
What you did
Create a sprite following users touch input.
What you expected to happen
To get
TouchInput
events.What actually happened
No
TouchInput
events are being produced.Additional information
Mouse position changes only at the start of a touch. I would like touch events rather than mouse position because I want to handle multiple fingers at the same time.
The text was updated successfully, but these errors were encountered: