Player choose PC or Mobile. control buttons

Godot Version

4.3

Question

I want the player to be able to choose whether he will play from a PC or from a phone. how do I make sure that if he chooses a PC, then there is no touch-screen-buttons, and if from the phone, then the buttons will appear?

I am not very expert on the subject, but in my own game I decided to use a keyboard for PC and a touch joypad for mobile. After entering the keyboard keys as input, I created a joypad object that is visible when the screen is touched, and I connected the movements in the object to the keyboard inputs. In this case, it also works with the mouse when opened from the computer.

But there is a situation like this. Since the only input I want to enter is for movement, I do not touch the screen in more than one place simultaneously. If you are going to use it only for movement, this method may work for you