diff options
| author | 2lag <96544487+2lag@users.noreply.github.com> | 2026-08-08 17:33:36 +0200 |
|---|---|---|
| committer | 2lag <96544487+2lag@users.noreply.github.com> | 2026-08-08 17:33:36 +0200 |
| commit | 2973df584978d9aae6f164ce0204179c8a28b3ae (patch) | |
| tree | c1b793c8e0d17aeb66c5197bc28acca84b2c98ab /src/util/input.h | |
| parent | e540910745aad31378452eec25aacfb3f346191a (diff) | |
console, textbox changes, some other shit
Diffstat (limited to 'src/util/input.h')
| -rw-r--r-- | src/util/input.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/util/input.h b/src/util/input.h index af5e258..f982844 100644 --- a/src/util/input.h +++ b/src/util/input.h @@ -34,9 +34,11 @@ struct INPUT_KEYBINDS { using ON_INPUT_FN = FN<void( SDL_Event* )>; +constexpr U32 INPUT_TEXT_MAX = 1024; + struct INPUT_DATA { MOUSE_DATA mouse; - U8 keys[0xff]; + U8 keys[0x100]; U8 mouselock; F32 msens = .3f; F32 myaw = 1.f; @@ -44,7 +46,8 @@ struct INPUT_DATA { INPUT_KEYBINDS binds; LIST<ON_INPUT_FN> on_input; - + char text[INPUT_TEXT_MAX]; + U32 textlen; }; extern INPUT_DATA input; |
