]> git.localhorst.tv Git - blank.git/blobdiff - src/client/client.cpp
added simple command line
[blank.git] / src / client / client.cpp
index ae1bf7378f59f6ed12494a08de8bd692e3b49aa6..26e0e0df748c64cd70f0807ae00e90b4bb7d1dbf 100644 (file)
@@ -105,6 +105,11 @@ void InteractiveState::Handle(const SDL_Event &event) {
                case SDL_KEYDOWN:
                        // TODO: move to interface
                        if (event.key.keysym.sym == SDLK_RETURN) {
+                               chat.Clear();
+                               master.GetEnv().state.Push(&chat);
+                               hud.KeepMessages(true);
+                       } else if (event.key.keysym.sym == SDLK_SLASH) {
+                               chat.Preset("/");
                                master.GetEnv().state.Push(&chat);
                                hud.KeepMessages(true);
                        } else {