We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60adf05 commit c7a1500Copy full SHA for c7a1500
src/main.cpp
@@ -147,6 +147,9 @@ int main(int argc, char* argv[])
147
return 1;
148
}
149
150
+ //dont generate joystick events while we're loading (hopefully fixes "automatically started emulator" bug)
151
+ SDL_JoystickEventState(SDL_DISABLE);
152
+
153
//try loading the system config file
154
if(!SystemData::loadConfig(SystemData::getConfigPath(), true))
155
{
@@ -169,6 +172,9 @@ int main(int argc, char* argv[])
169
172
window.pushGui(new GuiDetectDevice(&window));
170
173
171
174
175
+ //generate joystick events since we're done loading
176
+ SDL_JoystickEventState(SDL_ENABLE);
177
178
bool sleeping = false;
179
unsigned int timeSinceLastEvent = 0;
180
int lastTime = 0;
0 commit comments