Skip to content

Commit

Permalink
Fixed accidental call to SDL_PrivateJoystickHat()
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Sep 14, 2016
1 parent f050576 commit 925859a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/joystick/iphoneos/SDL_sysjoystick.m
Expand Up @@ -513,7 +513,6 @@ SDL_JoystickID SDL_SYS_GetInstanceIdOfDeviceIndex(int device_index)
};

hatstate = SDL_SYS_MFIJoystickHatStateForDPad(gamepad.dpad);
SDL_PrivateJoystickHat(joystick, 0, hatstate);

for (i = 0; i < SDL_arraysize(buttons); i++) {
updateplayerindex |= (joystick->buttons[i] != buttons[i]);
Expand Down

0 comments on commit 925859a

Please sign in to comment.