fix Handle_joystick_release()

This commit is contained in:
Thomas Bernard 2019-02-21 09:54:57 +01:00
parent 01c16b488d
commit 81932d5407
No known key found for this signature in database
GPG Key ID: 0FF11B67A5C0863C

View File

@ -1094,42 +1094,42 @@ static int Handle_joystick_release(SDL_JoyButtonEvent event)
{ {
#ifdef JOY_BUTTON_UP #ifdef JOY_BUTTON_UP
case JOY_BUTTON_UP: case JOY_BUTTON_UP:
Directional_up=1; Directional_up=0;
break; break;
#endif #endif
#ifdef JOY_BUTTON_UPRIGHT #ifdef JOY_BUTTON_UPRIGHT
case JOY_BUTTON_UPRIGHT: case JOY_BUTTON_UPRIGHT:
Directional_up_right=1; Directional_up_right=0;
break; break;
#endif #endif
#ifdef JOY_BUTTON_RIGHT #ifdef JOY_BUTTON_RIGHT
case JOY_BUTTON_RIGHT: case JOY_BUTTON_RIGHT:
Directional_right=1; Directional_right=0;
break; break;
#endif #endif
#ifdef JOY_BUTTON_DOWNRIGHT #ifdef JOY_BUTTON_DOWNRIGHT
case JOY_BUTTON_DOWNRIGHT: case JOY_BUTTON_DOWNRIGHT:
Directional_down_right=1; Directional_down_right=0;
break; break;
#endif #endif
#ifdef JOY_BUTTON_DOWN #ifdef JOY_BUTTON_DOWN
case JOY_BUTTON_DOWN: case JOY_BUTTON_DOWN:
Directional_down=1; Directional_down=0;
break; break;
#endif #endif
#ifdef JOY_BUTTON_DOWNLEFT #ifdef JOY_BUTTON_DOWNLEFT
case JOY_BUTTON_DOWNLEFT: case JOY_BUTTON_DOWNLEFT:
Directional_down_left=1; Directional_down_left=0;
break; break;
#endif #endif
#ifdef JOY_BUTTON_LEFT #ifdef JOY_BUTTON_LEFT
case JOY_BUTTON_LEFT: case JOY_BUTTON_LEFT:
Directional_left=1; Directional_left=0;
break; break;
#endif #endif
#ifdef JOY_BUTTON_UPLEFT #ifdef JOY_BUTTON_UPLEFT
case JOY_BUTTON_UPLEFT: case JOY_BUTTON_UPLEFT:
Directional_up_left=1; Directional_up_left=0;
break; break;
#endif #endif