rnd-20031116-2-src
[rocksndiamonds.git] / src / libgame / joystick.c
index af30a82067eb8812399b6c5eb26f5ca3fdf100e7..32efad6f840fdccaf7d3fb224c8563db3fdf5caa 100644 (file)
@@ -20,7 +20,7 @@
 
 
 /* ========================================================================= */
-/* platform dependant joystick functions                                     */
+/* platform dependent joystick functions                                     */
 /* ========================================================================= */
 
 #if defined(PLATFORM_UNIX) && !defined(TARGET_SDL)
@@ -97,7 +97,7 @@ boolean UnixReadJoystick(int fd, int *x, int *y, boolean *b1, boolean *b2)
 
 
 /* ========================================================================= */
-/* platform independant joystick functions                                   */
+/* platform independent joystick functions                                   */
 /* ========================================================================= */
 
 #define TRANSLATE_JOYSYMBOL_TO_JOYNAME 0
@@ -326,7 +326,7 @@ int AnyJoystick()
 int AnyJoystickButton()
 {
   int i;
-  int result;
+  int result = JOY_BUTTON_NOT_PRESSED;
 
   for (i=0; i<MAX_PLAYERS; i++)
   {