-
Notifications
You must be signed in to change notification settings - Fork 175
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
Add support for cursor events #220
Comments
I think it is worth analysing the backend situation for a bit. Currently there are two backends in Kiss3d - glutin (native target) and stdweb (web target): Regarding glutin:
Regarding stdweb:
In any case, if Kiss3d is to expose an API with the unified pointer event model, code must be written to adapt the separate Mouse and Touch event model into the unified pointer event model. The only variable is whether this code will be in Kiss3d or in winit. At the end, Kiss3d can either:
The former adds the complexity of having to switch between two input event handling implementations within Kiss3d, but it is good for keeping backward-compatibility with existing code. I do not consider it an option to provide APIs with the unified pointer event model for use only on supported platforms, because it transfers the complexity to the user, which goes against the idea of keeping it simple to use. |
But I do wonder, if all this work is needed is it really worth supporting the unified pointer event model in Kiss3d? The idea of a unified pointer event model is to simplify pointer event handling by allowing the mouse/touch/pen input to be shared for the most part except for some special cases. How I imagine the pointer events would be used considering the use case of Kiss3d:
I don't exactly see the benefit here, other than the issue that the current APIs does not provide direct support for Pen inputs. |
HTML5 defines cursor event as a generalization of mouse/touch/pen events. We should design a way of supporting this. The question of how the API must be modified an how we handle compatibility with older browser is not simple and has been discussed extensively in #207.
The discussion should continue on this issue instead.
The text was updated successfully, but these errors were encountered: