InputEventScreenTouch isnt working on my mobile and its driving me crazy

ManiacBananaManiacBanana Posts: 11Member

Hi! Literally the most basic code:

func _input(event):
if event is InputEventScreenTouch:

TestCase is just a premade string that points to the first level of the game.

This scene is supposed to be a "Touch anywhere to start" kinda start screen. I tried using a button that took up the whole screen before and it worked when i tested it from godot, but after i exported to my phone is just doesnt seem to do anything.



  • cyberealitycybereality Posts: 651Member

    Here is some code I'm using, seems to work fine on all Android devices I have.

    func _input(event):
        if event.is_action_pressed("some_key") \
            or (event is InputEventScreenTouch and event.is_pressed()):
  • cyberealitycybereality Posts: 651Member

    Also, you might have to disable both Emulate Mouse from Touch and Emulate Touch from Mouse in the Input Devices project settings.

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file