Fixed unconditional use of JOYDEV.
This commit is contained in:
parent
6a52a507fd
commit
e5bd2f8221
|
@ -71,6 +71,7 @@ BOOL16 joyOpenDriver(WORD wID)
|
||||||
|
|
||||||
if (wID>=MAXJOYSTICK) return FALSE;
|
if (wID>=MAXJOYSTICK) return FALSE;
|
||||||
if (joy_dev[wID] >= 0) return TRUE; /* was already open */
|
if (joy_dev[wID] >= 0) return TRUE; /* was already open */
|
||||||
|
#ifdef HAVE_LINUX_JOYSTICK_H
|
||||||
sprintf(buf,JOYDEV,wID);
|
sprintf(buf,JOYDEV,wID);
|
||||||
flags = O_RDONLY;
|
flags = O_RDONLY;
|
||||||
#ifdef HAVE_LINUX_22_JOYSTICK_API
|
#ifdef HAVE_LINUX_22_JOYSTICK_API
|
||||||
|
@ -81,6 +82,9 @@ BOOL16 joyOpenDriver(WORD wID)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
} else
|
} else
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
#else
|
||||||
|
return FALSE;
|
||||||
|
#endif /* HAVE_LINUX_JOYSTICK_H */
|
||||||
}
|
}
|
||||||
|
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
|
|
Loading…
Reference in New Issue