Fixed unconditional use of JOYDEV.

This commit is contained in:
Gerald Pfeifer 2000-02-07 22:11:40 +00:00 committed by Alexandre Julliard
parent 6a52a507fd
commit e5bd2f8221

View File

@ -71,6 +71,7 @@ BOOL16 joyOpenDriver(WORD wID)
if (wID>=MAXJOYSTICK) return FALSE;
if (joy_dev[wID] >= 0) return TRUE; /* was already open */
#ifdef HAVE_LINUX_JOYSTICK_H
sprintf(buf,JOYDEV,wID);
flags = O_RDONLY;
#ifdef HAVE_LINUX_22_JOYSTICK_API
@ -81,6 +82,9 @@ BOOL16 joyOpenDriver(WORD wID)
return TRUE;
} else
return FALSE;
#else
return FALSE;
#endif /* HAVE_LINUX_JOYSTICK_H */
}
/**************************************************************************