rnd-19981002-1
[rocksndiamonds.git] / src / joystick.c
index 0e1a42cd969b056933bd5589f6cc3e403fe4bc07..8392a8a15daffab9868dd721b5d77592eee19625 100644 (file)
@@ -16,6 +16,7 @@
 #endif
 
 #include "joystick.h"
+#include "misc.h"
 
 /*
 #include "tools.h"
@@ -93,8 +94,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);
   }