X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fjoystick.c;h=8cf04cf69be4fe6d0c8dd7f57d0461389b8f765d;hb=8cea50fbd1b74a2bc164a79cbd26bdbb3abd6689;hp=06ac654162e43f38da9f24b483d8d9de64db2691;hpb=c9433eab5c4317ed4f89164b386a7d33562e29be;p=rocksndiamonds.git diff --git a/src/libgame/joystick.c b/src/libgame/joystick.c index 06ac6541..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