rnd-19981026-1
[rocksndiamonds.git] / src / joystick.c
index 86fabec7fa4fb753351e4fe6b41335a45461d4b1..73150d5377f930a694394ac659eab15169b3ae37 100644 (file)
@@ -74,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;
@@ -84,7 +85,7 @@ int Joystick()
 #ifndef MSDOS
   if (read(joystick_device, &joy_ctrl, sizeof(joy_ctrl)) != sizeof(joy_ctrl))
   {
-    Error(ERR_RETURN, "cannot read joystick settings - no joystick support");
+    Error(ERR_WARN, "cannot read joystick settings - no joystick support");
     joystick_status = JOYSTICK_OFF;
     return(0);
   }