Disabled more stuff in case "No joystick" is selected.
This commit is contained in:
2
src/pc.c
2
src/pc.c
@@ -463,7 +463,7 @@ void runpc()
|
||||
keyboard_process();
|
||||
// checkkeys();
|
||||
pollmouse();
|
||||
joystick_poll();
|
||||
if (joystick_type != 7) joystick_poll();
|
||||
endblit();
|
||||
|
||||
framecountx++;
|
||||
|
@@ -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);
|
||||
|
@@ -91,6 +91,8 @@ void joystick_init()
|
||||
{
|
||||
int c;
|
||||
|
||||
if (joystick_type == 7) return;
|
||||
|
||||
atexit(joystick_close);
|
||||
|
||||
joysticks_present = 0;
|
||||
|
Reference in New Issue
Block a user