static boolean bitmaps_initialized = FALSE;
boolean screen_initialized = FALSE;
static Bitmap *controller, *button, *axis_x, *axis_y;
- Bitmap *marker;
char *name;
boolean success = TRUE;
boolean done = FALSE, next = FALSE;
axis_x = LoadCustomImage("joystick/axis_x.png");
axis_y = LoadCustomImage("joystick/axis_y.png");
- marker = button; /* initialize with reliable default value */
-
bitmaps_initialized = TRUE;
}
/* loop through all steps (buttons and axes), getting joystick events */
for (i = 0; i < SDL_arraysize(steps) && !done;)
{
+ Bitmap *marker = button; /* initialize with reliable default value */
+
step = &steps[i];
strcpy(step->mapping, mapping);
step->axis = -1;