aboutsummaryrefslogtreecommitdiff
path: root/sources/globals.c
diff options
context:
space:
mode:
Diffstat (limited to 'sources/globals.c')
-rw-r--r--sources/globals.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sources/globals.c b/sources/globals.c
index 2986131..badcc1e 100644
--- a/sources/globals.c
+++ b/sources/globals.c
@@ -3,8 +3,8 @@
#include <SDL2/SDL_render.h>
#include <SDL2/SDL_scancode.h>
-TZR_Config ___tzr_config = {0};
-TZR_Color ___tzr_color = {0, 0.0f, 0.0f, 0.0f, 1.0f};
+TZR_Config ___tzr_config = {};
+TZR_Color ___tzr_color = {0.0f, 0.0f, 0.0f, 0.0f, 1.0f};
TZR_Resource *___tzr_resources = NULL;
size_t ___tzr_resources_capacity = 0;
size_t ___tzr_resources_size = 0;
@@ -17,5 +17,6 @@ unsigned long ___tzr_min_dt = 0;
int ___tzr_should_quit = 0;
int ___tzr_mouse_x = 0;
int ___tzr_mouse_y = 0;
-const char *___tzr_command[___TZR_RES_COUNT] = {0};
-TZR_KeyState ___tzr_keystates[SDL_NUM_SCANCODES] = {0};
+const char *___tzr_command[___TZR_RES_COUNT] = {};
+TZR_KeyState ___tzr_keystates[SDL_NUM_SCANCODES] = {};
+TZR_KeyState ___tzr_mousestates[256] = {}; //doc says than mouse button is u8