Comments (4)
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.
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.
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.
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)
- Game.xml entries load twice if GameConfig.bin is loaded from a mod
- Modifying Characters.ani files breaks the collision HOT 1
- Cannot Pause both of the games. HOT 1
- [Windows] Game won't launch if filepath contains too many characters
- Sharp Bilinear Missing? HOT 1
- Game crashes when pause is pressed. HOT 2
- Time Attack data isn't saving correctly, overrides next act best time with current act's former 3rd place time (?) HOT 1
- Extended Camera doesn't track the player when going up and down sometimes, causes camera jitter. HOT 1
- Blank screen sonic 1 and sonic 2 on SDL2 but I hear the music HOT 2
- Slight error in RSDKv3 & 4 readme HOT 1
- Inaccurate compatibility with Android 4.2
- Error when trying to install the dependencies HOT 1
- I finally compiled the origins decomp but when i tried to setup sonic 1 and opened the .exe file it crashed HOT 1
- APK No Longer works HOT 2
- fcaseopen.c buffer overflow
- On Android devices with larger screens Sonic cannot run off screen. HOT 1
- [Android] No controller button to bring up dev menu HOT 1
- [Android} No ability to switch games/Data.rsdk files HOT 2
- Could NOT find Vorbis (missing: Vorbis_DIR) HOT 1
- [Windows (All Platforms too?)] - Controllers lose input if disconnected too many times.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sonic-1-2-2013-decompilation.