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

Fix: InputEventJoypadMotion should trigger only once on a vslider #63168

Merged
merged 1 commit into from
Jun 5, 2023

Conversation

Levrault
Copy link
Contributor

@Levrault Levrault commented Jul 18, 2022

Fixes #62932
Closes godotengine/godot-proposals#4911

Both slider and popup_menu has been modified to support joypad motion.

2023-02-09.13-10-43.mp4

@Levrault Levrault requested a review from a team as a code owner July 18, 2022 21:15
@KoBeWi KoBeWi added this to the 4.0 milestone Jul 18, 2022
@Levrault
Copy link
Contributor Author

It could also be backported to 3.x. Was tested on both 4.0, 3.4 and 3.5

@akien-mga akien-mga added the cherrypick:3.x Considered for cherry-picking into a future 3.x release label Jul 18, 2022
@Levrault Levrault force-pushed the master branch 2 times, most recently from 43df020 to a720e51 Compare July 25, 2022 20:28
@Levrault Levrault requested review from a team as code owners July 25, 2022 20:28
@Levrault
Copy link
Contributor Author

PR has been updated to match my proposal godotengine/godot-proposals#4911

scene/gui/popup_menu.cpp Outdated Show resolved Hide resolved
scene/gui/popup_menu.cpp Outdated Show resolved Hide resolved
scene/gui/popup_menu.cpp Outdated Show resolved Hide resolved
scene/gui/popup_menu.h Outdated Show resolved Hide resolved
scene/gui/slider.cpp Outdated Show resolved Hide resolved
@KoBeWi
Copy link
Member

KoBeWi commented Apr 18, 2023

Seems fine, but I left some comments. The comments I left in PopupMenu also apply to Slider (mostly).

@Levrault
Copy link
Contributor Author

@KoBeWi The same jitter seems to happen when using the keyboard :/ it seems left visible since it's a little bit faster the gamepad

Peek.2023-04-19.10-00.mp4

@KoBeWi
Copy link
Member

KoBeWi commented Apr 19, 2023

Then I guess it's fine.

scene/gui/slider.cpp Outdated Show resolved Hide resolved
scene/gui/popup_menu.cpp Outdated Show resolved Hide resolved
scene/gui/popup_menu.cpp Outdated Show resolved Hide resolved
scene/gui/popup_menu.cpp Outdated Show resolved Hide resolved
Copy link
Member

@KoBeWi KoBeWi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good now.
Needs to be squashed into 1 commit.

gaheldev added a commit to bear-minimum-studio/nightbear that referenced this pull request May 20, 2023
not properly supported by godot yet
godotengine/godot#63168 should fix it soon
@Levrault
Copy link
Contributor Author

Levrault commented Jun 5, 2023

@KoBeWi sorry, I didn't saw your comment. Commit are squashed now.

@akien-mga akien-mga merged commit f00c971 into godotengine:master Jun 5, 2023
@akien-mga
Copy link
Member

Thanks! And congrats for your first merged Godot contribution 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug cherrypick:3.x Considered for cherry-picking into a future 3.x release topic:input
Projects
None yet
6 participants