Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Button shortcut not triggered from gamepad #25741

Closed
FlavioFS opened this issue Feb 9, 2019 · 4 comments · Fixed by #25924
Closed

Button shortcut not triggered from gamepad #25741

FlavioFS opened this issue Feb 9, 2019 · 4 comments · Fixed by #25924

Comments

@FlavioFS
Copy link

FlavioFS commented Feb 9, 2019

I've searched for this issue but could not find anything similar.
I also apologize in advance in case this is a duplicate one.

Godot version:

Godot Engine v3.1.beta2.official

OS/device including version:

Sony VAIO SVE14A15FBW:

  • Windows 10 x64
  • Intel(R) Core(TM) i5-2450M @ 2.5GHz (4 CPUs)
  • 6GB RAM
  • AMD Radeon HD 7600M
  • XBOX 360 wired gamepad

Issue description:

HUD Button Shortcut does not trigger InputEventAction for InputMap action "ui_select" when input source is a gamepad.

Steps to reproduce:

  1. Load project Dodge the Creeps! from Godot's documentation.

  2. Navigate to menu Project >> Project Settings >> Input Map.

  3. Add a shortcut to your favorite button within the section "ui_select"
    bug

  4. Set the shortcut for the Start Button in your HUD scene:

  • Shortcut: New Shortcut
  • Shortcut: New InputEventAction
  • Action: ui_select
    bug2
  1. Run the game.

Results

  • The shortcut will work for the keyboard (spacebar), but not for the gamepad.
  • I can move the character with the gamepad, no keys are broken or loose. I've tested it.
  • Gamepad functions do work from GDScript.

Minimal reproduction project:

This is the original project, I apologize one more time if the bug is within it.
Dodge the Creeps! 3.0.zip

@FlavioFS
Copy link
Author

FlavioFS commented Feb 9, 2019

Update

Here is a really tiny project reproducing the supposed bug:

GamepadBug.zip

image

Edit
Notice when we try to catch the event from GDScript (CanvasLayer.gd - L32), the button gets stuck until ui_select action is triggered again but from ANOTHER key.

Edit 2
This is NOT limited to "ui_select" action, it also applies to any other action.

@Calinou
Copy link
Member

Calinou commented Feb 15, 2019

I can confirm this on commit 962c142 (tested on Linux with a wired Xbox One V3 controller).

@SpyrexDE
Copy link

This is an issue again in Godot 4 alpha 11.

@Calinou
Copy link
Member

Calinou commented Jul 10, 2022

This is an issue again in Godot 4 alpha 11.

Please open a new issue with a minimal reproduction project attached.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants