X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fjoystick.c;h=27a190fc6b14fb48464cc62c64c417000f36d304;hb=1146572677fd6858df5fc1fabfd7f7294bdefed7;hp=7bf648ed75cd766059ff843b7a966659ac884c4c;hpb=4b0f1eb4220d2dbe4cffb288f745661b32c96a5b;p=rocksndiamonds.git diff --git a/src/joystick.c b/src/joystick.c index 7bf648ed..27a190fc 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() { @@ -83,6 +74,7 @@ int Joystick() } joy_ctrl; #endif + int joystick_nr = setup.input[0].joystick_nr; int js_x,js_y, js_b1,js_b2; int left, right, up, down; int result=0; @@ -93,8 +85,7 @@ int Joystick() #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); }