X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fjoystick.c;h=86fabec7fa4fb753351e4fe6b41335a45461d4b1;hb=57562a0f29074feea1dc01ddf1b1d5e4e6d59730;hp=3855400d814eeacbac23662117a465813ec6b361;hpb=b7d31643c9c84104fb3ebef778e545928610ff65;p=rocksndiamonds.git diff --git a/src/joystick.c b/src/joystick.c index 3855400d..86fabec7 100644 --- a/src/joystick.c +++ b/src/joystick.c @@ -1,12 +1,12 @@ /*********************************************************** * Rocks'n'Diamonds -- McDuffin Strikes Back! * *----------------------------------------------------------* -* ©1995 Artsoft Development * -* Holger Schemel * -* 33604 Bielefeld * -* Telefon: (0521) 290471 * -* eMail: aeglos@valinor.owl.de * -* aeglos@uni-paderborn.de * +* (c) 1995-98 Artsoft Entertainment * +* Holger Schemel * +* Oststrasse 11a * +* 33604 Bielefeld * +* phone: ++49 +521 290471 * +* email: aeglos@valinor.owl.de * *----------------------------------------------------------* * joystick.c * ***********************************************************/ @@ -16,16 +16,7 @@ #endif #include "joystick.h" - -/* -#include "tools.h" -#include "game.h" -#include "events.h" -#include "sound.h" #include "misc.h" -#include "buttons.h" -#include -*/ void CheckJoystickData() { @@ -90,10 +81,10 @@ 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", - progname); + Error(ERR_RETURN, "cannot read joystick settings - no joystick support"); joystick_status = JOYSTICK_OFF; return(0); } @@ -131,6 +122,9 @@ int Joystick() result |= JOY_BUTTON_2; return(result); +#else + return(0); +#endif } int JoystickButton()