Input map does not work on android (SOLVED)

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By wcostaprijo

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.

:bust_in_silhouette: Reply From: wcostaprijo

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