Giter Club home page Giter Club logo

Comments (4)

sedme0 avatar sedme0 commented on August 21, 2024

I found that defining RETRO_DISABLE_CONTROLLER_HOTSWAP fixes the issue, but that comes with the opposite problem from before. There's probably a better solution, though.

from sonic-1-2-2013-decompilation.

elgarlic avatar elgarlic commented on August 21, 2024

Similar problem when booting on Xbox/UWP. About 50% of the times the app is started, controller input doesn't work. Once that happens, no amount of closing and reopening the app will allow controller recognition. But reconnecting the controller while the app is running will always fix it. Controller connects pretty much 100% of the time after console is rebooted, if this is the first app run.

Edit: This seems to be partially resolved in the latest version. No more randomness in controller input. But exiting out of the app by pressing B at the first screen will seem to suspend it rather than fully quit. Going back in before you force quit will still lose controller input. But once you've quit and restarted it, it seems to be fine. I think the solution here would be not to allow exiting out by going "back" at the top level.

from sonic-1-2-2013-decompilation.

delta7890 avatar delta7890 commented on August 21, 2024

Not sure if this is due to the same issue/behavior, but I've found that my controller (a Dualshock 4) is also unresponsive until alt-tabbing out of the program and alt-tabbing back in. After that, everything works just fine.

from sonic-1-2-2013-decompilation.

lethal-guitar avatar lethal-guitar commented on August 21, 2024

I wonder if the following patch might fix this:

diff --git a/Sonic12Decomp/main.cpp b/Sonic12Decomp/main.cpp
index d4c7a50..3a6819c 100644
--- a/Sonic12Decomp/main.cpp
+++ b/Sonic12Decomp/main.cpp
@@ -10,7 +10,12 @@ int main(int argc, char *argv[])
     SDL_SetHint(SDL_HINT_WINRT_HANDLE_BACK_BUTTON, "1");
     Engine.Init();
 #if RETRO_USING_SDL2
-    controllerInit(0);
+    for (Uint8 i = 0; i < SDL_NumJoysticks(); ++i) {
+      if (SDL_IsGameController(i)) {
+        controllerInit(i);
+        break;
+      }
+    }
 #endif
     Engine.Run();

Didn't have a lot of time for testing, so not sure if this is even related to the issue. But I noticed it as a potential problem while reading the code, so I thought I'd mention it.

from sonic-1-2-2013-decompilation.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.