break;
}
break;
-#ifdef JOY_YES
case SDL_JOYAXISMOTION:
switch(event.jaxis.axis)
menuaction = MN_HIT;
break;
-#endif
default:
break;
/* SuperTux directory ($HOME/.supertux) and save directory($HOME/.supertux/save) */
char *st_dir, *st_save_dir;
-#ifdef JOY_YES
SDL_Joystick * js;
-#endif
/* SuperTux directory ($HOME/.supertux) and save directory($HOME/.supertux/save) */
extern char *st_dir, *st_save_dir;
-#ifdef JOY_YES
extern SDL_Joystick * js;
-#endif
#endif /* SUPERTUX_GLOBALS_H */
done = 1;
}
-#ifdef JOY_YES
else if (event.type == SDL_JOYBUTTONDOWN)
{
/* Fire button - skip intro: */
done = 1;
}
-#endif
}
/* Init Joystick: */
-#ifdef JOY_YES
use_joystick = YES;
if (SDL_Init(SDL_INIT_JOYSTICK) < 0)
else
{
/* Open joystick: */
-
if (SDL_NumJoysticks() <= 0)
{
fprintf(stderr, "Warning: No joysticks are available.\n");
}
}
}
-#endif
-
}
void st_audio_setup(void)
quit = 1;
}
}
-#ifdef JOY_YES
else if (event.type == SDL_JOYAXISMOTION && event.jaxis.axis == JOY_Y)
{
if (event.jaxis.value > 1024)
menuaction = MN_HIT;
}
-#endif
-
}
/* Draw the background: */