mirror of
https://github.com/kichikuou/system3-sdl2.git
synced 2026-10-01 11:27:54 +03:00
Always enable GameController, and remove unused USE_JOY code
This commit is contained in:
@@ -96,15 +96,6 @@ NACT::NACT(int sys_ver, uint32 crc32_a, uint32 crc32_b, const Config& config)
|
||||
mako = new MAKO(this, config);
|
||||
msgskip = new MsgSkip(this);
|
||||
|
||||
#ifdef USE_JOY
|
||||
// 入力初期化
|
||||
joy_num = joyGetNumDevs();
|
||||
if(joy_num) {
|
||||
joyGetDevCaps(JOYSTICKID1, &joycaps, sizeof(JOYCAPS));
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef USE_JOY_SDL
|
||||
SDL_Init(SDL_INIT_GAMECONTROLLER);
|
||||
for (int i = 0; i < SDL_NumJoysticks(); ++i) {
|
||||
if (SDL_IsGameController(i)) {
|
||||
@@ -116,7 +107,6 @@ NACT::NACT(int sys_ver, uint32 crc32_a, uint32 crc32_b, const Config& config)
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
terminate = false;
|
||||
restart_after_terminate = false;
|
||||
|
||||
Reference in New Issue
Block a user