Skip to content

Commit

Permalink
Fix gamepad state procedures
Browse files Browse the repository at this point in the history
  • Loading branch information
lmariscal committed Nov 23, 2019
1 parent 57b1dca commit a5293f4
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/glfw.nim
@@ -1,5 +1,4 @@
# Copyright 2019, NimGL contributors.

# Copyright 2019, NimGL contributors.
## GLFW Bindings
## ====
## WARNING: This is a generated file. Do not edit
Expand All @@ -23,7 +22,7 @@ when defined(glfwDLL):
else:
{.compile: "glfw/private/glfw/src/vulkan.c".}

# Thanks to ephja for making this build system
# Thanks to ephja for making this build systemt
when defined(windows):
{.passC: "-D_GLFW_WIN32",
passL: "-lopengl32 -lgdi32",
Expand Down Expand Up @@ -4144,7 +4143,7 @@ proc setDropCallback*(window: GLFWWindow, callback: GLFWDropfun): GLFWDropfun {.
## @since Added in version 3.1.
##
## @ingroup input
proc glfwJoystickPresent*(jid: bool): bool {.importc: "glfwJoystickPresent".}
proc glfwJoystickPresent*(jid: int32): bool {.importc: "glfwJoystickPresent".}
## @brief Returns whether the specified joystick is present.
##
## This function returns whether the specified joystick is present.
Expand Down Expand Up @@ -4525,7 +4524,7 @@ proc glfwGetGamepadName*(jid: int32): cstring {.importc: "glfwGetGamepadName".}
## @since Added in version 3.3.
##
## @ingroup input
proc glfwGetGamepadState*(jid: bool, state: ptr GLFWGamepadstate): bool {.importc: "glfwGetGamepadState".}
proc glfwGetGamepadState*(jid: int32, state: ptr GLFWGamepadstate): bool {.importc: "glfwGetGamepadState".}
## @brief Retrieves the state of the specified joystick remapped as a gamepad.
##
## This function retrieves the state of the specified joystick remapped to
Expand Down

0 comments on commit a5293f4

Please sign in to comment.