Disabled more stuff in case "No joystick" is selected.

This commit is contained in:
OBattler
2016-09-16 03:04:05 +02:00
parent ecd425a9c6
commit 7be9a3c9c4
3 changed files with 4 additions and 2 deletions

View File

@@ -463,7 +463,7 @@ void runpc()
keyboard_process(); keyboard_process();
// checkkeys(); // checkkeys();
pollmouse(); pollmouse();
joystick_poll(); if (joystick_type != 7) joystick_poll();
endblit(); endblit();
framecountx++; framecountx++;

View File

@@ -425,7 +425,7 @@ static BOOL CALLBACK config_dlgproc(HWND hdlg, UINT message, WPARAM wParam, LPAR
speedchanged(); speedchanged();
joystick_type = temp_joystick_type; joystick_type = temp_joystick_type;
gameport_update_joystick_type(); if (joystick_type != 7) gameport_update_joystick_type();
case IDCANCEL: case IDCANCEL:
EndDialog(hdlg, 0); EndDialog(hdlg, 0);

View File

@@ -91,6 +91,8 @@ void joystick_init()
{ {
int c; int c;
if (joystick_type == 7) return;
atexit(joystick_close); atexit(joystick_close);
joysticks_present = 0; joysticks_present = 0;