X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fjoystick.c;h=7bf648ed75cd766059ff843b7a966659ac884c4c;hb=4b0f1eb4220d2dbe4cffb288f745661b32c96a5b;hp=3855400d814eeacbac23662117a465813ec6b361;hpb=4dcd7afc3645fa20c7868263eb09764e68240acd;p=rocksndiamonds.git diff --git a/src/joystick.c b/src/joystick.c index 3855400d..7bf648ed 100644 --- a/src/joystick.c +++ b/src/joystick.c @@ -90,6 +90,7 @@ int Joystick() if (joystick_status==JOYSTICK_OFF) return(0); +#ifndef MSDOS if (read(joystick_device, &joy_ctrl, sizeof(joy_ctrl)) != sizeof(joy_ctrl)) { fprintf(stderr,"%s: cannot read joystick settings - no joystick support\n", @@ -131,6 +132,9 @@ int Joystick() result |= JOY_BUTTON_2; return(result); +#else + return(0); +#endif } int JoystickButton()