-
Notifications
You must be signed in to change notification settings - Fork 162
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
[Web build] Mouse can be detected outside the screen #651
Comments
What would your preferred behavior be? Capping it out at zero / maximum screen size? |
Depends on the game. Different games might want different behaviors.
Currently wasm4 differentiate between left/middle/right mouse button. This is unlike a physical touch screen. About simulating physical touch screen, something needed: synthetic "touch down" event when mouse leave the screen while the button is held down. and "touch up" when mouse enter the screen. |
Here's a game that heavily relies on mouse events outside of the canvas boundary: https://wasm4.org/play/future-avoid It also happens to not be very playable on mobile because of that, but I guess that's a trade-off for game developers to decide. Maybe we can document it somewhere? |
Does this make sense for a console?
Peek.2023-06-13.mp4
The page is opened with
w4 run ....
The text was updated successfully, but these errors were encountered: