From aa35d972ef76d23f90d602b684b87510ddbb6fc0 Mon Sep 17 00:00:00 2001 From: onelin Date: Sun, 13 Apr 2025 10:59:30 +0200 Subject: Move mouse input to input context --- src/core/include/engine/core/platform.h | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/core/include/engine') diff --git a/src/core/include/engine/core/platform.h b/src/core/include/engine/core/platform.h index 7faf901..0a1bb45 100644 --- a/src/core/include/engine/core/platform.h +++ b/src/core/include/engine/core/platform.h @@ -28,17 +28,8 @@ typedef struct Instance { u64 frame; u16 fps_target; - /* TODO: Move mouse data to input ctx/bindings */ /* TODO: Move input ctx/bindings to window */ /* TODO: Move cam to window->renderer */ - ivec2 mouse_pos; - - ivec2 mousedown; - ivec2 mouseup; - - bool mouse_lclick; - bool mouse_rclick; - Camera *cam; /* Global resources that live from engine_init to engine_free */ @@ -47,9 +38,9 @@ typedef struct Instance { memory* mem; /* The ctrl is probably the only sensible thing in this struct. */ - i_ctx** bindings; usize bindings_sz; usize bindings_len; + i_ctx** bindings; binding_t bindings_global[NUM_GLOBAL_BINDINGS]; } Instance; -- cgit v1.3