0 votes

I am using an input map configured with the name "test" for the left mouse button, in my scene I am using the following code:

func _ready():
    set_process_input(true)

func _input(event):
    if event.is_action_pressed("test"):
        print('test')

while running in the editor works perfectly, but when I export to android it just does not recognize and does not take any action.

Note: I used the InputEventScreenTouch event, okay it works on android, but it issues the event twice, one for preloaded and one for dropping.

Note: I used the event is InputEventScreenTouch, okay it works on android, but it issues the event twice, one for pressed and one for dropping.
I've also tried using event is InputEventScreenTouch and event.is_pressed(), got very close to the expected result, but there is a small delay and it is not good for my game because it is a game based on flappy bird.

in Engine by (16 points)
edited by

1 Answer

0 votes

I found, my error was in custom packages, they were compiled only for x64, I recompiled for x86 and everything works perfectly.

by (16 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.