Skip to content

Panic triggered by PS4 controller touch-pad button  #1128

Closed
@FredTheDino

Description

@FredTheDino

_ => panic!("unhandled controller button"),

^This line^

To reproduce:

  1. Plug in a PS4 controller
  2. Use the SDL2 event handling
  3. Press the bug button
  4. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions