Skip to content

XBox360 wireless gamepad doesn't reconnect after turning it off and on #113

@sergiinikolaiev

Description

@sergiinikolaiev

Hello!

I have a wireless XBox360 gamepad (VID 0x045E PID 0x0719). And when using it via GameInput it initially works well, but after turning it off and on again (e.g. by unplugging the battery and plugging it back), it doesn't reconnect back and inputs are not updated. On GameInput interface it stays "Connected". Only physically reconnecting the wireless receiver helps it to be reconnected propery and start working again.
I am listening to device state using:

gameInput->RegisterDeviceCallback(nullptr, GameInputKindGamepad, GameInputDeviceAnyStatus, GameInputBlockingEnumeration, this, &deviceCallback, &token);

and in a loop I am reading the specific device using:
gameInput->GetNextReading(lastReading, GameInputKindGamepad, device, &reading);
with a fallback to
gameInput->GetCurrentReading(GameInputKindGamepad, device, &reading);
if GetNextReading fails.

Via xInput it reconnects fine when turning it off and on during gameplay.

Verified on GameInput v3.1.26100.6879 and v3.2.138

Please let me know if you need more details

Metadata

Metadata

Assignees

No one assigned

    Labels

    gameinputRelated to GameInput API

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions