From 2276dc7ad067f7af7504783239103c1abd7b4433 Mon Sep 17 00:00:00 2001 From: Vlad-Stefan Harbuz Date: Mon, 7 Feb 2022 13:08:52 +0100 Subject: refactor names from e.g. sdl2::init() to sdl2::SDL_Init() Signed-off-by: Vlad-Stefan Harbuz --- sdl2/joystick.ha | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sdl2/joystick.ha') 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()); -- cgit v1.2.3