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();
// checkkeys();
pollmouse();
joystick_poll();
if (joystick_type != 7) joystick_poll();
endblit();
framecountx++;

View File

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

View File

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