aboutsummaryrefslogtreecommitdiff
path: root/headers/TZR_joystick.h
blob: 51e4279f10196902468511bee83fb66a1c9ed780 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#pragma once
#include "TZR_types.h"
#include <SDL2/SDL_gamecontroller.h>

TZR_KeyState TZR_JoystickGetState(uint8_t button);
bool TZR_JoystickDown(uint8_t button);
bool TZR_JoystickUp(uint8_t button);
bool TZR_JoystickReleased(uint8_t button);
bool TZR_JoystickPressed(uint8_t button);
float TZR_JoystickLeftX(void);
float TZR_JoystickLeftY(void);
float TZR_JoystickRightX(void);
float TZR_JoystickRightY(void);