-
Notifications
You must be signed in to change notification settings - Fork 463
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
Panic triggered by PS4 controller touch-pad button #1128
Comments
I agree that a panic might be a bit harsh. Which button of the PS4 controller is it? Also, which call made this panic trigger? |
This is the relevant part of the callstack:
So the EventIterator. |
Ok so it happens with |
The one circled in the image - the right hand side of the touch-pad thingy. |
I can reproduce. Seems to be |
rust-sdl2/src/sdl2/controller.rs
Line 333 in 1b514a7
^This line^
To reproduce:
I'm running on Linux kernal 5.12.14-arch1-1.
I'm not sure how you want it fixed. But the naïve thing is to just remove the panic. The SDL2 documentation (https://wiki.libsdl.org/SDL_GameControllerButton) makes it look like you're not missing buttons.
The text was updated successfully, but these errors were encountered: