godot: TouchScreenButton with is_action_just_pressed() bug

Godot version

4.1.2.rc1

System information

Godot v4.1.2.rc1 - Windows 10.0.19045 - Vulkan (Mobile) - integrated AMD Radeon™ Vega 8 Graphics () - AMD Ryzen 3 2200G with Radeon Vega Graphics (4 Threads)

Issue description

if Input.is_action_just_pressed("ui_accept") and is_on_floor():     

this form with “just” don’t work on mobile (android) i don’t know why but when you try it in pc with mouse emulate touch it works fine but when you export the project to the mobile it don’t work although is_action_pressed() works fine idk why the one with “just” don’t work with TouchScreenButton on mobile please fix that

Steps to reproduce

if Input.is_action_just_pressed("ui_accept") and is_on_floor(): velocity.y = JUMP_VELOCITY

its a basic form of jump when you add TouchScreenButton and assign it with ui_accept and try it it only works in pc not actually on the mobile i cant just the Button dont work things to note : -TouchScreenButton work with is_action_pressed() on mobile but is_action_just_pressed() don’t work -is_action_just_pressed() work fine in pc when you click with the mouse but it don’t work on mobile -It only work on mobile if you make a signals for pressed and released for TouchScreenButton

Minimal reproduction project

image

About this issue

  • Original URL
  • State: closed
  • Created 9 months ago
  • Comments: 18 (8 by maintainers)

Commits related to this issue

Most upvoted comments

I’m experiencing the same issue.

Here’s my minimal project: TouchScreenButtonBugMobile.zip

@Alex2782 @ErezShahaf

Thank you for fixing this issue @Alex2782

I think it’s not a duplicate it’s just similar in things doesn’t work on mobile properly , i hope this will be fixed and thanks for the response

Best regards RoboLamp Dev

On Wed, 27 Sept 2023, 12:00 am Markus Sauermann, @.***> wrote:

Can you please check,if this is a duplicate of #58562 https://github.com/godotengine/godot/issues/58562?

— Reply to this email directly, view it on GitHub https://github.com/godotengine/godot/issues/82396#issuecomment-1736295438, or unsubscribe https://github.com/notifications/unsubscribe-auth/BC2JRBUVMINRZEYLBPWI4TTX4M667ANCNFSM6AAAAAA5IIE7MM . You are receiving this because you authored the thread.Message ID: @.***>