X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fjoystick.c;h=32efad6f840fdccaf7d3fb224c8563db3fdf5caa;hb=0ef9c7d4b387b42f40d2f226920e306d588544f7;hp=04731ec8809f7fa64a09c367e0c15628b4c4737c;hpb=e0e2697df0d0da483a91b1248c120aef6b3caf9b;p=rocksndiamonds.git diff --git a/src/libgame/joystick.c b/src/libgame/joystick.c index 04731ec8..32efad6f 100644 --- a/src/libgame/joystick.c +++ b/src/libgame/joystick.c @@ -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