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