How can I implement multitouch in Godot 4?

I’m currently developing a first-person shooter. I’ve implemented camera rotation by swiping the screen and character movement using a joystick. Unfortunately, if the player starts using a gamepad, they lose the ability to rotate the camera, which makes controlling the game very difficult. How can I fix this and create a comfortable control scheme? I’m ready to provide the player control source code to fix this error. Thank you very much in advance!

That doesnt sound like you need multitouch. You need to add gamepad control for your rotation.

This is simple with if and or

If touch event or gamepad action event: rotate

I cant find any documentation that wouldn’t allow simultaneous touch and joypad events.

This makes me think there is an implementation issue. Could you share your code?

1 Like

I’m having similar issue. I like to know if I can use this topic or should make a new one.

I have a simple mobile game, with one player/character that moves horizontally and shoots. To move it I’m using a touch and drag on the screen, not a fixed joystick or buttons. And to shoot, I have a TouchScreenButton.

The problem is when I’m dragging on the screen, if I touch the button, the movement stops. Or if I’m touching the button, I cannot move the player.
I would like to make both actions at the same time, independently.

Is it possible somehow?