X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fjoystick.c;h=32efad6f840fdccaf7d3fb224c8563db3fdf5caa;hb=1bd9644544424ed912d886777c6e8ed387aac24a;hp=af30a82067eb8812399b6c5eb26f5ca3fdf100e7;hpb=909a0a4d74f274b5c05c16cf595b235aa092fc9a;p=rocksndiamonds.git diff --git a/src/libgame/joystick.c b/src/libgame/joystick.c index af30a820..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