X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fjoystick.c;h=c2d0c192cc0d6323458f7d698eb0d4bfcf0f4f1c;hb=5c717898f717007b885f86e0d02f10d2a0306237;hp=af30a82067eb8812399b6c5eb26f5ca3fdf100e7;hpb=909a0a4d74f274b5c05c16cf595b235aa092fc9a;p=rocksndiamonds.git diff --git a/src/libgame/joystick.c b/src/libgame/joystick.c index af30a820..c2d0c192 100644 --- a/src/libgame/joystick.c +++ b/src/libgame/joystick.c @@ -20,15 +20,17 @@ /* ========================================================================= */ -/* platform dependant joystick functions */ +/* platform dependent joystick functions */ /* ========================================================================= */ #if defined(PLATFORM_UNIX) && !defined(TARGET_SDL) void UnixInitJoysticks() { + static boolean unix_joystick_subsystem_initialized = FALSE; + boolean print_warning = !unix_joystick_subsystem_initialized; int i; - for (i=0; i= setup.input[i].joy.xmiddle) setup.input[i].joy.xleft = setup.input[i].joy.xmiddle - distance; @@ -317,7 +325,7 @@ int AnyJoystick() int i; int result = 0; - for (i=0; i