-
Notifications
You must be signed in to change notification settings - Fork 197
emscripten touch support is intented? #2694
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
Comments
Touch instead of Mouse is not implemented but I totally see that this would be the expected behaviour (at least for Left & Right Touch, Cursor position is a different topic...) One Touch: Left click Converting it to a mouse cursor is more tricky, maybe just use the last touch position and when the finger moves on the screen the cursor moves? The code you found is "Touch for decision & cancel". This can be enabled with the option Note that these options could conflict with the KeyInput support because One Finger Touch is then detected as both Decision and Left-Click. (when I fix this issue) |
Hmm, short term solution is checking for This will not help with mouse cursor movement via touch but at least makes the finger working 🤔 (Long term solution would be a better integration in the normal Input class) |
However, the strange thing is that the touched coordinates can be obtained by the Why don't MouseButtons support finger touch? |
I checked the documentation:
So mouse motion and touch motion is sent through the same event and we do not check the |
I see, it was an accident after all 😆 I understood that |
@krmbn0576 For Scroll (no idea how this behaves, needs testing): For Finger press (I guess 1 finger = Left and 2 finger = Right, untested!): This will not be changed upstream. I work on a better fix instead but this takes longer :) |
thx, I tested it. Key Input Proc 1005 (Left Click) was activated when the screen was touched, but other events seem to be unsupported. I can't think of a way to implement the wheel event, but |
Okay so the mouse emulation is junk. Good to know. :D |
I found a way to properly detect N fingers, making this fully compatible with the mouse input. (only gestures for "scrolling" won't work) Will be part of 0.8.0 (when its done 😅 ) |
In 0.7.0, Key Input Proc (Maniac Patch) for
mouse
is supported, and emscripten build supports touches.Player/src/system.h
Lines 58 to 60 in dfbad20
Player/src/input_buttons_desktop.cpp
Lines 154 to 157 in d3e3a13
However, I tested this and did not work.
fingers touch input is intented? or not implemented yet?
The text was updated successfully, but these errors were encountered: