Closed
Description
rust-sdl2/src/sdl2/controller.rs
Line 333 in 1b514a7
^This line^
To reproduce:
- Plug in a PS4 controller
- Use the SDL2 event handling
- Press the bug button
- Watch it burn
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.
Metadata
Metadata
Assignees
Labels
No labels