Input controls

How can have both control modes for mobile and website.

Like for example when open the game on mobile only joystick controls

And when open the game on website then control game using WASD keys and mouse. I donot want to have joysticks on desktop view, only in mobile view

i have tried to integerate both still cannot undertand how to do it

Hi @HongKong_Simfusion!

You can do something like below. (This will not cover all situations, but at least you can start with it).

// initialize
if ( {
    // enable joystick controls
else {
    // disable joystick controls

Please note that you need to use the #help-and-support section for questions and problems.