diff options
| author | aura <nw@moneybot.cc> | 2026-08-11 19:10:16 +0200 |
|---|---|---|
| committer | aura <nw@moneybot.cc> | 2026-08-11 19:10:16 +0200 |
| commit | 17c07b5f884453130d8be3a6d91d730d80d4f8ae (patch) | |
| tree | 6ec11e5e5f7f0be9ed899196c2897aa76a907de2 /src/util/input.h | |
| parent | 1aa17de9188790f049c0edc4281597cb4e535627 (diff) | |
| parent | 0a9d7ce6a0764a87766ebb23cc1ece4c26c8c678 (diff) | |
Merge remote-tracking branch 'origin/day'
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; |
