Skip to content

Windows: App infinite loop and crash occurs after disconnecting non-gamepad USB device. #60

@joshhammock

Description

@joshhammock

First off, the recent work on gamepads is much appreciated and has been perfect for my current project. Thank you!

There is an issue that I'm able to consistently recreate when unplugging a non-gamepad usb device from my windows PC. It's not every time, but often the first or second time. The devices that I've tried with were a usb hub, keyboard, and mouse.

The loop appears to be in GamepadListenerProc and it's repeatedly calling update_gamepads and seems to be alternating wParam between DBT_DEVICEARRIVAL and DBT_DEVICEREMOVECOMPLETE.

That's about as far as my knowledge goes, but it might just need something to detect and prevent starting the listener if the device is not a gamepad.

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