I'm using touch input and my game works for pc and mobile but i can't use the mouse at the same time of the keyboard
Develop games in your browser. Powerful, performant & highly capable.
Usually i solve problems like this using touch variables or using the touch nth event.
So for example "on touch object", i add under another condition " has touch nth, i set this to 0 for the first touch, and 1 for the 2th touch.
This way the game know when user is touching double.
Same function for both touches we just making it so the game knows what touch id a certain touch has.
I want to use (wasd) while i'm using left clicking