Skip to content

Commit 4b42141

Browse files
authored
Merge pull request #144 from nim-lang/ringabout-patch-1
hotfix for joystick
2 parents 7308de6 + 9717e5e commit 4b42141

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/sdl2/joystick.nim

+9-9
Original file line numberDiff line numberDiff line change
@@ -197,15 +197,15 @@ proc joystickEventState*(state: cint): cint {.
197197
## The `state` can be one of `SDL_QUERY`, `SDL_ENABLE` or `SDL_IGNORE`.
198198

199199
proc joystickGetAxis*(joystick: JoystickPtr, axis: cint): int16 {.
200-
importc: "SDL_JoystickGetAxis".}SDL_
201-
## Get the current state of an aSDL_xis control on a joystick.
202-
##SDL_
203-
##SDL_ The state is a value ranging SDL_from `-32768` to `32767`.
204-
##SDL_
205-
##SDL_ The axis indices start at indSDL_ex `0`.
206-
SDL_
207-
SDL_proc getAxis*(joystick: JoystickPtSDL_r, axis: cint): int16 {.inline.} =
208-
## Get the current state of an aSDL_xis control on a joystick.
200+
importc: "SDL_JoystickGetAxis".}
201+
## Get the current state of an axis control on a joystick.
202+
##
203+
## The state is a value ranging from `-32768` to `32767`.
204+
##
205+
## The axis indices start at index `0`.
206+
207+
proc getAxis*(joystick: JoystickPtr, axis: cint): int16 {.inline.} =
208+
## Get the current state of an axis control on a joystick.
209209
##
210210
## The state is a value ranging from `-32768` to `32767`.
211211
##

0 commit comments

Comments
 (0)