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

Right stick axis mapped with keyboard keys create "laggy" movements #57666

Closed
guillaumepn opened this issue Feb 5, 2022 · 7 comments
Closed

Comments

@guillaumepn
Copy link

guillaumepn commented Feb 5, 2022

Godot version

v3.4.2.stable.mono.official [45eaa2d]

System information

MacOS Monterey v12.1

Issue description

When I create a new input map and combine a Right Stick Axis with a keyboard key, and then use the keyboard key ingame, I see some "lag" in the movement created

I attached a small project showing this, just run it and try moving the Godot image with Keyboard "L" to move right, and comparing it with Keyboard "J" to move left

I only tried it on a Mac

image

Steps to reproduce

  • Create a new input map in Settings > Input Map called "joy_r_right" for example
  • Assign to it : the keyboard key L and the "Right Stick Right" axis input
  • Create a simple scene / script in which you move a sprite with this input
  • The movement is not consistent
  • Now remove the "Right Stick Right" from the input map, and retry
  • The movement is smooth

Minimal reproduction project

GameTest.zip

@Calinou
Copy link
Member

Calinou commented Feb 5, 2022

Can you reproduce this on Godot 3.3.4? If not, this is likely a duplicate of #55037.

@guillaumepn
Copy link
Author

Just tried on v3.3.4.stable.mono.official [faf3f88], I still see the problem unfortunately

@Calinou Calinou added this to the 4.0 milestone Feb 5, 2022
@Calinou
Copy link
Member

Calinou commented Feb 5, 2022

This could be related to #45628, especially if the joystick is connected and is continuously sending inputs due to the deadzone being too low.

Which controller model are you using?

@guillaumepn
Copy link
Author

Indeed when I disconnect my controller, the problem is solved!

I use a PS5 controller

@Calinou
Copy link
Member

Calinou commented Feb 5, 2022

Could you test #48343 to see if it resolves the issue? Make a backup of your project first (or use version control), as #48343 will change the project.godot file in a backwards-incompatible manner.

See instructions in Testing pull requests.

@madmiraal
Copy link
Contributor

This is a duplicate of #39287 that is fixed with #47599 and it's 3.x version #48343.

@Calinou
Copy link
Member

Calinou commented Mar 17, 2022

Duplicate of #39287.

@Calinou Calinou closed this as completed Mar 17, 2022
@Calinou Calinou removed this from the 4.0 milestone Mar 17, 2022
@Calinou Calinou modified the milestone: 3.5 Mar 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants