diff options
| author | Vlad-Stefan Harbuz <vlad@vladh.net> | 2022-02-07 13:08:52 +0100 |
|---|---|---|
| committer | Drew DeVault <sir@cmpwn.com> | 2022-02-07 18:56:08 +0100 |
| commit | 2276dc7ad067f7af7504783239103c1abd7b4433 (patch) | |
| tree | 20f2f98f4af8b2ff0efeb3b15f1a26e09702e908 /sdl2/joystick.ha | |
| parent | correct indentation (diff) | |
| download | hare-chip8-2276dc7ad067f7af7504783239103c1abd7b4433.tar.gz | |
refactor names from e.g. sdl2::init() to sdl2::SDL_Init()
Signed-off-by: Vlad-Stefan Harbuz <vlad@vladh.net>
Diffstat (limited to '')
| -rw-r--r-- | sdl2/joystick.ha | 8 |
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()); |
