KNI Engine / Blazor: How does touch screen on mobile platforms work? #8287
andrewandrepowell
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey all!
I recently posted a question on the old forums, but it was pointed out to me I should be using GitHub Discussions instead. The link to the original post is the following.
https://community.monogame.net/t/kni-engine-blazor-how-does-touch-screen-on-mobile-platforms-work/20420
Long story short, I can't figure out for the life of me how to access the touch screen when my game is running in a browser over a mobile app. The game itself is implemented with the MonoGame KNI fork, using the Blazor GL platform. The TouchPanel class doesn't appear to ever connect, but it's rather difficult to debug on a mobile platform since it requires me to post new builds to itch.io, connect my computer to my phone, only to see that the developer menu in Safari crashes every time the game loads. The game does successfully load on mobile, as I can see the animation of the pause / help menu opening and the game resizes itself properly to the size of the screen. However, touching the screen doesn't appear to trigger anything. For context, I'm using an iphone, if it matters. I'm also pretty new to WebAssembly and Blazor, and I'm starting to find out there some operations I can only do in JavaScript.
Once again, appreciate any amount of help.
(Hopefully this is okay, but I'm gonna go ahead and mention @nkast)
Beta Was this translation helpful? Give feedback.
All reactions