Drewol / unnamed-sdvx-clone

A game based on K-Shoot MANIA and Sound Voltex
MIT License
776 stars 93 forks source link

[Bug] Buttons cannot be remapped after removing an unused controller outside of the game. #439

Open Erodynamics opened 3 years ago

Erodynamics commented 3 years ago

Describe the bug Input cannot be remapped after removing an unused controller outside of the game

To Reproduce Steps to reproduce the behavior:

  1. Attach two controllers that USC can recognize
  2. Launch game, map every button to a controller
  3. Close game
  4. Disconnect the unused controller
  5. Restart game
  6. Go back to settings and remap a button

Expected behavior Prompt to remap button or knob

Screenshots image

Desktop (please complete the following information):

Additional Information

Log file

[13:08:26][Info] Starting task "Application Setup"
[13:08:26][Info] Version: 0.4.0
[13:08:26][Info] Git commit: 2021-02-28_e76cb5b0
[13:08:26][Info] The locale was changed from C to English_Canada.utf8
[13:08:26][Info] Starting task "Font library initialization"
[13:08:26][Info] Finished task "Font library initialization" in  5 ms
[13:08:26][Info] Starting task "Creating Window"
[13:08:27][Info] Listing 1 Joysticks:
[13:08:27][Info] [0] "YuanCon" (16 buttons, 2 axes, 0 hats)
[13:08:27][Info] Finished task "Creating Window" in  299 ms
[13:08:27][Error] Out of range controller [1], number of available controllers is 1
[13:08:27][Info] Starting task "Audio Init"
[13:08:27][Info] Finished task "Audio Init" in  34 ms
[13:08:27][Info] Starting task "GL Init"
[13:08:27][Info] OpenGL Version: 3.3.0 NVIDIA 461.09
[13:08:27][Info] OpenGL Shading Language Version: 3.30 NVIDIA via Cg compiler
[13:08:27][Info] OpenGL Renderer: GeForce RTX 2060 SUPER/PCIe/SSE2
[13:08:27][Info] OpenGL Vendor: NVIDIA Corporation
[13:08:27][Info] Finished task "GL Init" in  21 ms
[13:08:27][Info] Starting task "Discord RPC Init"
[13:08:27][Info] Starting task "Check for updates"
[13:08:27][Info] Finished task "Discord RPC Init" in  0 ms
[13:08:27][Info] Starting task "Load Transition Screens"
[13:08:27][Info] Finished task "Load Transition Screens" in  49 ms
[13:08:27][Normal] Update check status code: 200
[13:08:32][Error] Failed to open joystick 1
[13:08:32][Error] Failed to open gamepad: 1
[13:10:14][Error] Failed to add IApplicationTickable
[13:10:16][Error] Failed to open joystick 1
[13:10:16][Error] Failed to open gamepad: 1
[13:10:18][Error] Failed to add IApplicationTickable
[13:10:24][Error] Failed to open joystick 1
[13:10:24][Error] Failed to open gamepad: 1
[13:10:26][Error] Failed to add IApplicationTickable
[13:10:37][Error] Failed to open joystick 1
[13:10:37][Error] Failed to open gamepad: 1
[13:10:39][Error] Failed to add IApplicationTickable
[13:10:45][Error] Failed to open joystick 1
[13:10:45][Error] Failed to open gamepad: 1
[13:10:47][Error] Failed to add IApplicationTickable
[13:13:37][Error] Out of range controller [1], number of available controllers is 1
[13:13:37][Normal] Update check status code: 200
123jimin commented 3 years ago

Reselecting any controller in the settings page will make it work.

Drewol commented 3 years ago

Should be fixed by 8c3bbb143d234ac7549857bfa4b18101cddb21a2