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

DirectInput: Use correct joypad id #40927

Merged
merged 1 commit into from
Aug 1, 2020
Merged

Conversation

27thLiz
Copy link
Contributor

@27thLiz 27thLiz commented Jul 31, 2020

Previously joypad_count was used as the index into the d_joypads array when initializing a new gamepad.
This caused the accidental override of an already connected device when a gamepad with a lower id was disconnected and connected again.

fixes #17566

Previously `joypad_count` was used as the index into the d_joypads array when initializing a new gamepad.
This caused the accidental override of an already connected device when a gamepad with a lower id was disconnected and connected again.

fixes godotengine#17566
@akien-mga
Copy link
Member

akien-mga commented Jul 31, 2020

How many aliases will I need to add for you in .mailmap @27thLiz? :P

More seriously, happy to see some new activity from you. Welcome back! :)

@akien-mga akien-mga added the cherrypick:3.x Considered for cherry-picking into a future 3.x release label Jul 31, 2020
@akien-mga akien-mga requested a review from madmiraal July 31, 2020 19:10
@ghost
Copy link

ghost commented Jul 31, 2020

Working fine now. 👍

@akien-mga akien-mga merged commit ec9302c into godotengine:master Aug 1, 2020
@akien-mga
Copy link
Member

Thanks!

@27thLiz 27thLiz deleted the dinput-id branch August 1, 2020 08:46
@akien-mga
Copy link
Member

Cherry-picked for 3.2.3.

@akien-mga akien-mga removed the cherrypick:3.x Considered for cherry-picking into a future 3.x release label Aug 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Joypad IDs increment when they shouldn't and fail to signal on Windows.
3 participants