diff options
| author | onelin <oscar@nelin.dk> | 2025-04-13 08:59:30 +0000 |
|---|---|---|
| committer | onelin <oscar@nelin.dk> | 2025-04-13 08:59:30 +0000 |
| commit | aa35d972ef76d23f90d602b684b87510ddbb6fc0 (patch) | |
| tree | f58a3a3375a69fdf3ba836fa6902def3ccc2567f /src/ctrl/include | |
| parent | 5cd270925af707599a3f842e1e969d5074ae80a8 (diff) | |
Move mouse input to input context
Diffstat (limited to 'src/ctrl/include')
| -rw-r--r-- | src/ctrl/include/engine/ctrl/input.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ctrl/include/engine/ctrl/input.h b/src/ctrl/include/engine/ctrl/input.h index 8ed77b4..18a6797 100644 --- a/src/ctrl/include/engine/ctrl/input.h +++ b/src/ctrl/include/engine/ctrl/input.h @@ -5,8 +5,8 @@ extern "C" { #endif +#include <cglm/ivec2.h> #include <engine/core/types.h> -//#include <engine/ctrl/scancodes.h> #include <engine/ctrl/keycodes.h> typedef void input_callback_t(void*); @@ -49,8 +49,12 @@ typedef struct binding_t { } binding_t; typedef struct i_ctx { - binding_t* bindings; + + // Current mouse position + ivec2 mouse_pos; + usize len; + binding_t* bindings; } i_ctx; void i_ctx_t_free(i_ctx* c); |
