-
Notifications
You must be signed in to change notification settings - Fork 77
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
Support canvas touch input events #366
Comments
This would definitely be a good addition to I'm pretty sure the web touch APIs make this pretty doable, but I'm less sure how well-supported touch events are in glutin, the desktop windowing library. I would be okay with some features that are web-only if they were clearly documented that way, but I generally prefer to only add things that are cross-platform. |
Glutin docs do mention touch events, however touch on Windows native already works okay. Long presses are treated as right mouse clicks - useful when using Windows, probably not while playing games. I'll see if I can find a fix. Registering touches as mouse clicks is enough for what I am currently trying to achieve. I could be wrong, but my understating is |
Oh, I misread your issue then. Yeah, if multitouch isn't a consideration, then this should be at least a little easier. |
I added support for web touch api: koute/stdweb#305 For quicksilver, a simple way to support touch is to forgo multitouch and convert the primary touch into a mouse event. |
@soundrez This should be fixed on the development branch, and in the next release (0.3.5). Feel free to reopen if there are any problems. |
Describe the problem you want to solve
Touchscreen tap events are recorded as mouse click events. All other gestures are ignored.
Describe the solution you'd like
Map canvas touch events (long press, drag) to quicksilver mouse input events. Perhaps later on, a separate input type can be added.
Are you interested in contributing?
Yes, if this is a good first issue.
The text was updated successfully, but these errors were encountered: