aboutsummaryrefslogtreecommitdiff
path: root/sdl2/joystick.ha
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--sdl2/joystick.ha8
1 files changed, 4 insertions, 4 deletions
diff --git a/sdl2/joystick.ha b/sdl2/joystick.ha
index adbcd14..2234aff 100644
--- a/sdl2/joystick.ha
+++ b/sdl2/joystick.ha
@@ -1,12 +1,12 @@
// TODO: Flesh me out
// Minimum value for a joystick axis.
-export def JOYSTICK_AXIS_MIN: i16 = -32768;
+export def SDL_JOYSTICK_AXIS_MIN: i16 = -32768;
// Minimum value for a joystick axis.
-export def JOYSTICK_AXIS_MAX: i16 = 32767;
+export def SDL_JOYSTICK_AXIS_MAX: i16 = 32767;
-@symbol("SDL_NumJoysticks") fn _numjoysticks() int;
+@symbol("SDL_NumJoysticks") fn _SDL_NumJoysticks() int;
// Returns the number of joysticks attached to the system.
-export fn numjoysticks() (int | error) = wrapint(_numjoysticks());
+export fn SDL_NumJoysticks() (int | error) = wrapint(_SDL_NumJoysticks());