0
In javascript how would you change mouse control in games to touchscreen control?
2 ответов
+ 5
I'm a bit confused by your question but if you're looking for a way to trigger touchscreen events then you need to lookup touch events instead of mouse events.
Example:
-You get the "click" event for mouse clicks and
-You get the "touchstart" event for when the user touches the screen
Look here for more info.
https://www.w3schools.com/jquerymobile/jquerymobile_events_touch.asp
+ 1
This answers my question, thanks Gav!