Skip to content

Commit

Permalink
SDL2: Fixed undefined identifier introduced with 4337c54
Browse files Browse the repository at this point in the history
  • Loading branch information
kai-li-wop committed Jul 27, 2024
1 parent 5b7dc3a commit e172431
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/SDL2/test/testjoystick.c
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ void loop(void *arg)
for (i = 0; i < SDL_JoystickNumHats(joystick); ++i) {
/* Derive the new position */
const Uint8 hat_pos = SDL_JoystickGetHat(joystick, i);
x = SCREEN_CENTER;
x = SCREEN_WIDTH / 2;
y = SCREEN_HEIGHT / 2;

if (hat_pos & SDL_HAT_UP) {
Expand Down

0 comments on commit e172431

Please sign in to comment.