I’ve written some code in order to detect, after an input was made, what is the current input mode of the player:
Problem is, when running the game on my phone, sometime it suddenly changes the input mode to Mouse And Keyboard, which can only happen if, as can be seen above:
- no finger is touching the screen. here’s the code for the macro:
- key is not a gamepad key
- the game receives mouse movement inputs which aren’t 0
- the pressed key is a mouse key
- the pressed key is a keyboard key
After some testing, it seems like the “Is Keyboard Key” node returns true sometimes when I touch my phone’s screen with my fingers, while no keyboard is connected to it.
Is this a bug? Has anyone else come across this?