aboutsummaryrefslogtreecommitdiff
path: root/src/ui.h
diff options
context:
space:
mode:
authorspl3g <spleefer6@yandex.ru>2025-11-09 20:43:50 +0300
committerspl3g <spleefer6@yandex.ru>2025-11-09 20:43:50 +0300
commitfc326115fa154bc19f3f10d7c2c4e57710ef1e0d (patch)
tree53ea067805d79d578a258fb0c347aa1525ab2dc2 /src/ui.h
parent11e5f50717af85f775491a5d2a2867a7e0f9c45f (diff)
Move to sokol (broke the wave screen)
Diffstat (limited to 'src/ui.h')
-rw-r--r--src/ui.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/ui.h b/src/ui.h
index d9ecbf4..bfae0c0 100644
--- a/src/ui.h
+++ b/src/ui.h
@@ -4,13 +4,12 @@
#include <stdbool.h>
#include <stddef.h>
#include <stdio.h>
-
-#include <SDL3/SDL_scancode.h>
-#include <SDL3/SDL_keycode.h>
+#include <math.h>
#include "arena.h"
+#include "sokol/sokol_app.h"
-#include "clay_renderer_SDL3.h"
+#include "custom_elements.h"
#include "clay.h"
#include "messages.h"
@@ -24,7 +23,7 @@ static const Clay_Color COLOR_ACCENT = (Clay_Color){133, 146, 137, 255};
typedef struct {
char letter;
- SDL_Keycode keycode;
+ sapp_keycode keycode;
bool mouse_pressed;
bool keyboard_pressed;
} KeyState;