321321 LeftThumb # # Gamepad joystick pressed button left
322322 RightThumb # # Gamepad joystick pressed button right
323323
324- GamepadAxis * {.size : sizeof (int32 ).} = enum # # Gamepad axis
324+ GamepadAxis * {.size : sizeof (int32 ).} = enum # # Gamepad axes
325325 LeftX # # Gamepad left stick X axis
326326 LeftY # # Gamepad left stick Y axis
327327 RightX # # Gamepad right stick X axis
@@ -842,7 +842,7 @@ proc maximizeWindow*() {.importc: "MaximizeWindow", sideEffect.}
842842proc minimizeWindow * () {.importc : " MinimizeWindow" , sideEffect .}
843843 # # Set window state: minimized, if resizable
844844proc restoreWindow * () {.importc : " RestoreWindow" , sideEffect .}
845- # # Set window state: not minimized/maximized
845+ # # Restore window from being minimized/maximized
846846proc setWindowIcon * (image: Image ) {.importc : " SetWindowIcon" , sideEffect .}
847847 # # Set icon for window (single image, RGBA 32bit)
848848proc setWindowIconsImpl (images: ptr UncheckedArray [Image ], count: int32 ) {.importc : " SetWindowIcons" , sideEffect .}
@@ -1060,9 +1060,9 @@ proc isGamepadButtonUp*(gamepad: int32, button: GamepadButton): bool {.importc:
10601060proc getGamepadButtonPressed * (): GamepadButton {.importc : " GetGamepadButtonPressed" , sideEffect .}
10611061 # # Get the last gamepad button pressed
10621062proc getGamepadAxisCount * (gamepad: int32 ): int32 {.importc : " GetGamepadAxisCount" , sideEffect .}
1063- # # Get gamepad axis count for a gamepad
1063+ # # Get axis count for a gamepad
10641064proc getGamepadAxisMovement * (gamepad: int32 , axis: GamepadAxis ): float32 {.importc : " GetGamepadAxisMovement" , sideEffect .}
1065- # # Get axis movement value for a gamepad axis
1065+ # # Get movement value for a gamepad axis
10661066proc setGamepadMappingsImpl (mappings: cstring ): int32 {.importc : " SetGamepadMappings" , sideEffect .}
10671067proc setGamepadVibration * (gamepad: int32 , leftMotor: float32 , rightMotor: float32 , duration: float32 ) {.importc : " SetGamepadVibration" , sideEffect .}
10681068 # # Set gamepad vibration for both motors (duration in seconds)
@@ -1159,8 +1159,12 @@ proc drawCircleLines*(center: Vector2, radius: float32, color: Color) {.importc:
11591159 # # Draw circle outline (Vector version)
11601160proc drawEllipse * (centerX: int32 , centerY: int32 , radiusH: float32 , radiusV: float32 , color: Color ) {.importc : " DrawEllipse" , sideEffect .}
11611161 # # Draw ellipse
1162+ proc drawEllipse * (center: Vector2 , radiusH: float32 , radiusV: float32 , color: Color ) {.importc : " DrawEllipseV" , sideEffect .}
1163+ # # Draw ellipse (Vector version)
11621164proc drawEllipseLines * (centerX: int32 , centerY: int32 , radiusH: float32 , radiusV: float32 , color: Color ) {.importc : " DrawEllipseLines" , sideEffect .}
11631165 # # Draw ellipse outline
1166+ proc drawEllipseLines * (center: Vector2 , radiusH: float32 , radiusV: float32 , color: Color ) {.importc : " DrawEllipseLinesV" , sideEffect .}
1167+ # # Draw ellipse outline (Vector version)
11641168proc drawRing * (center: Vector2 , innerRadius: float32 , outerRadius: float32 , startAngle: float32 , endAngle: float32 , segments: int32 , color: Color ) {.importc : " DrawRing" , sideEffect .}
11651169 # # Draw ring
11661170proc drawRingLines * (center: Vector2 , innerRadius: float32 , outerRadius: float32 , startAngle: float32 , endAngle: float32 , segments: int32 , color: Color ) {.importc : " DrawRingLines" , sideEffect .}
@@ -1177,7 +1181,7 @@ proc drawRectangleGradientV*(posX: int32, posY: int32, width: int32, height: int
11771181 # # Draw a vertical-gradient-filled rectangle
11781182proc drawRectangleGradientH * (posX: int32 , posY: int32 , width: int32 , height: int32 , left: Color , right: Color ) {.importc : " DrawRectangleGradientH" , sideEffect .}
11791183 # # Draw a horizontal-gradient-filled rectangle
1180- proc drawRectangleGradient * (rec: Rectangle , topLeft: Color , bottomLeft: Color , topRight : Color , bottomRight : Color ) {.importc : " DrawRectangleGradientEx" , sideEffect .}
1184+ proc drawRectangleGradient * (rec: Rectangle , topLeft: Color , bottomLeft: Color , bottomRight : Color , topRight : Color ) {.importc : " DrawRectangleGradientEx" , sideEffect .}
11811185 # # Draw a gradient-filled rectangle with custom vertex colors
11821186proc drawRectangleLines * (posX: int32 , posY: int32 , width: int32 , height: int32 , color: Color ) {.importc : " DrawRectangleLines" , sideEffect .}
11831187 # # Draw rectangle outline
0 commit comments