Davidobot / BetterJoy

Allows the Nintendo Switch Pro Controller, Joycons and SNES controller to be used with CEMU, Citra, Dolphin, Yuzu and as generic XInput
Other
3.76k stars 340 forks source link

keeps switching between keyboard and controller[BUG] #991

Open pokethey opened 2 years ago

pokethey commented 2 years ago

Describe the bug While playing Jedi fallen order on origin yesterday controller was working fine. Tonight, as I opened it with betterjoy on the game, kept switching between controller and keyboard settings whenever I would use the right stick or b button. Edit: Clicking the left stick also brings up weird keyboard

Expected behavior It was working as expected before. switch controller as an X-box controller.

Controller (please complete the following information):

datkat21 commented 2 years ago

Problem

Did you have Steam open? This issue appears to be that Steam is applying a custom controller layout (which it does by default while out of Big Picture mode/not playing a game and having a controller connected), shown below: (I'm not using BetterJoy, but this same problem is happening to me a using an XInput controller.) image

From the README, BetterJoy says it has "system-wide [...] generic XInput support." Steam will detect your XInput controller and set it to a custom desktop configuration.

I can confirm that the desktop configuration is active by clicking the left stick which brings up the keyboard:

image


Two solutions

  1. (Temporary fix) Exit Steam using the tray item or Steam > Exit (top left corner) inside the app:
    • Tray icon
    • Inside the app
  2. (Permanent fix) Disable the desktop configuration:
    • Open the Steam desktop app, go to Steam > Settings (same top left corner). steam_sKaEMBznbf
    • From here, go to the Controller > Desktop Configuration setting, shown below: image
    • Clicking this button will open a window where you can manage your controller configuration. To disable it, open the Browse Configs menu at the bottom: image
    • Select the "Disabled" option to disable this desktop configuration, then click Apply Configuration. You can now close the window and the desktop configuration should no longer apply to your controller. image image

      Troubleshooting this method:

      If you don't see the Disabled option for your controller, use the "Show Other Controller Types" button: image and select "Disabled" for one of the available controller types, in this case I will pick the Xbox One Controller: image Now, you can apply the configuration and see if it works.

After this fix

✅ Controller no longer acts as a mouse/keyboard since we removed the desktop configuration, as shown below:

chrome_85DFfS3hLD