libretro / libretro/RetroArch

Autoconfig not properly loading after xbox one controller turn off and on.

Open
#11,400 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
14.1k
Forks
2.2k
Avg merge
7h 35m
Merged PRs (30d)
51

Description

First and foremost consider this:

  • Only RetroArch bugs should be filed here. Not core bugs or game bugs
  • This is not a forum or a help section, this is strictly developer oriented

Description

For some reason it is not clearing the previously used autoconf but it is properly loading the new one since its fixing itself with "reset to default"

Expected behavior

I expect the configs to read at load properly, I also have weird issues where sometimes D-input controllers will be read as Xinput controllers so rebinding the controlls breaks, total mess, something has to be rewritten for coherency across the board.

Actual behavior

Anytime I switch from an xbox on controller on and off, an X input device all hell breaks loose, even old configs come back that don't even exist... very confusing, troubleshooted this with multiple people and everyone was confused.

Steps to reproduce the bug

set everything to default,
load xbox one wireless controller, load in X and A button may not work for w/e reason fix the config and save it. Turn off and take out battery for controller.

Plug in a generic usb wireless controller, config it properly test it out

2x working controller

unplug the wired generic usb controller and exit everything

put battery back into xbox one controller and load back into retroarch controller config will be back to broken A button config but you can fix it by loading autoconfig defaults.

Also direct input controls are overlapping eachoter for some reason with x input turned off so the configs just in general are broken/fake.

Bisect Results

Has always been happening as far as I can tell, have similar issues with N64 controllers breaking and A button or B button failing to register even if I manually config the profiles, either A or B works never both.

Version/Commit

1.9.0

  • RetroArch: [version/commit]
Environment information
  • OS: [windows 10 64 bit latest]
  • Compiler: [In case you are running local builds]

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the controller swap on Windows 10 with the Xbox One and generic wireless controllers described in the steps. Trace the autoconfig loading and XInput/DirectInput handling; done means the correct profile is selected after reconnecting, old profiles do not return, and bindings do not overlap.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.