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();
|
keyboard_process();
|
||||||
// checkkeys();
|
// checkkeys();
|
||||||
pollmouse();
|
pollmouse();
|
||||||
joystick_poll();
|
if (joystick_type != 7) joystick_poll();
|
||||||
endblit();
|
endblit();
|
||||||
|
|
||||||
framecountx++;
|
framecountx++;
|
||||||
|
@@ -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);
|
||||||
|
@@ -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;
|
||||||
|
Reference in New Issue
Block a user