XBox360 wireless gamepad doesn't reconnect after turning it off and on
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 1.7k
- Forks
- 134
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reconnect sequence with the listed Xbox 360 gamepad and GameInput versions, using RegisterDeviceCallback, GetNextReading, and GetCurrentReading as described. Compare the behavior with XInput; done means the device reconnects and inputs update without physically reconnecting the wireless receiver.
Written by the indexing model from the issue text.
Assessment
- Domain
- game-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100