diff options
| author | aura <nw@moneybot.cc> | 2026-03-16 10:15:01 +0100 |
|---|---|---|
| committer | aura <nw@moneybot.cc> | 2026-03-16 10:15:01 +0100 |
| commit | fdc5e8760fb7ac0af8e7ebb98a2076db15e31082 (patch) | |
| tree | c94991e1e594c7703295aa413caf40786f343c1f /src/util/input.h | |
| parent | e2829336cfedb39d23263f75b61ed969c8193534 (diff) | |
giga refactor, fix ALL the leaks
Diffstat (limited to 'src/util/input.h')
| -rw-r--r-- | src/util/input.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/util/input.h b/src/util/input.h index 1317f94..af5e258 100644 --- a/src/util/input.h +++ b/src/util/input.h @@ -1,7 +1,6 @@ #pragma once #include <SDL_events.h> -#include <functional> #include "vector.h" #include "allocator.h" @@ -33,7 +32,7 @@ struct INPUT_KEYBINDS { U8 crouch = SDL_SCANCODE_LCTRL; }; -using ON_INPUT_FN = std::function<void( SDL_Event* )>; +using ON_INPUT_FN = FN<void( SDL_Event* )>; struct INPUT_DATA { MOUSE_DATA mouse; |
