Skip to content

A collection of Gamepad issues and papercuts #319

@dubrowgn

Description

@dubrowgn

Using v0.17.3.

Couple of issues around gamepads:

  • The gamepad events are using the old "controller" nomenclature from sdl2. E.g. Event::ControllerDeviceAdded instead of e.g. Event::GamepadAdded (from SDL_EVENT_GAMEPAD_ADDED).
  • The gamepad events return u32 for which, while the gamepad API's take a JoystckID new type. The new sdl3 events use joystick id's instead of u32, so maybe this is related to the previous point.
  • Constructing a JoystickID fails, because you can't construct type aliases in rust (see: Cannot construct tuple struct via type alias rust-lang/rust#17422 )
  • JoystickID, doesn't implement Debug or Display, so you can't look at it without unwrapping it first.
  • Gamepad has_led, has_rumble, and has_rumble_triggers are marked unsafe.

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