aboutsummaryrefslogtreecommitdiff
path: root/headers/TZR_types.h
diff options
context:
space:
mode:
authorkdx <kikoodx@paranoici.org>2023-07-10 20:18:37 +0200
committerkdx <kikoodx@paranoici.org>2023-07-10 20:19:51 +0200
commit53b5a8abe962701b894980c52cc045704cccb2c4 (patch)
tree59b29c34e6422eabcaec89da2c22900cca51fb0c /headers/TZR_types.h
parenta9617e017b78fe41f109dc4c943a53d914e30b79 (diff)
downloadtzr-53b5a8abe962701b894980c52cc045704cccb2c4.tar.gz
sticks
Diffstat (limited to 'headers/TZR_types.h')
-rw-r--r--headers/TZR_types.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/headers/TZR_types.h b/headers/TZR_types.h
index 2f0a2dc..5af1f17 100644
--- a/headers/TZR_types.h
+++ b/headers/TZR_types.h
@@ -2,6 +2,7 @@
#include <stdbool.h>
#include <SDL2/SDL_render.h>
#include <SDL2/SDL_mixer.h>
+#include <SDL2/SDL_gamecontroller.h>
enum TZR_ResourceType {
TZR_RES_RAW,
@@ -46,6 +47,7 @@ typedef struct TZR_DrawImageArgs TZR_DrawImageArgs;
typedef struct TZR_DrawRectangleArgs TZR_DrawRectangleArgs;
typedef struct TZR_PlaySoundArgs TZR_PlaySoundArgs;
typedef enum TZR_KeyState TZR_KeyState;
+typedef struct TZR_Joystick TZR_Joystick;
struct TZR_Config {
int _;
@@ -143,3 +145,12 @@ struct TZR_PlaySoundArgs {
int loop;
float volume;
};
+
+struct TZR_Joystick
+{
+ SDL_GameController *ptr;
+ float leftx;
+ float lefty;
+ float rightx;
+ float righty;
+};