Skip to content

Commit

Permalink
Fix SDL_JoystickGetButton's signature
Browse files Browse the repository at this point in the history
  • Loading branch information
RX14 authored and ysbaddaden committed Feb 21, 2018
1 parent de1d178 commit 9b4ebfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib_sdl/joystick.cr
Expand Up @@ -35,6 +35,6 @@ lib LibSDL
fun joystick_get_axis = SDL_JoystickGetAxis(joystick : Joystick*, axis : Int) : Int16
fun joystick_get_hat = SDL_JoystickGetHat(joystick : Joystick*, hat : Int) : UInt8
fun joystick_get_ball = SDL_JoystickGetBall(joystick : Joystick*, ball : Int, dx : Int*, dy : Int*) : Int
fun joystick_get_button = SDL_JoystickGetButton(joystick : Joystick*, button : Int)
fun joystick_get_button = SDL_JoystickGetButton(joystick : Joystick*, button : Int) : UInt8
fun joystick_close = SDL_JoystickClose(joystick : Joystick*)
end

0 comments on commit 9b4ebfa

Please sign in to comment.