Skip to content

Commit

Permalink
Add base text input system
Browse files Browse the repository at this point in the history
  • Loading branch information
AllyTally committed Mar 22, 2023
1 parent 0edbf63 commit 27b49b7
Show file tree
Hide file tree
Showing 6 changed files with 489 additions and 0 deletions.
1 change: 1 addition & 0 deletions desktop_version/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ set(VVV_SRC
src/Spacestation2.cpp
src/TerminalScripts.cpp
src/Textbox.cpp
src/TextInput.cpp
src/Tower.cpp
src/UtilityClass.cpp
src/WarpClass.cpp
Expand Down
2 changes: 2 additions & 0 deletions desktop_version/src/KeyPoll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include "LocalizationStorage.h"
#include "Music.h"
#include "Screen.h"
#include "TextInput.h"
#include "UTF8.h"
#include "Vlogging.h"

Expand Down Expand Up @@ -142,6 +143,7 @@ void KeyPoll::Poll(void)
SDL_Event evt;
while (SDL_PollEvent(&evt))
{
TextInput::handle_events(evt);
switch (evt.type)
{
/* Keyboard Input */
Expand Down
Loading

0 comments on commit 27b49b7

Please sign in to comment.