- attempt to see if IRC chat works better with sdl2 textinput

This commit is contained in:
SoftCoder
2015-10-24 09:02:23 -07:00
parent 49ce8e729b
commit 76d41dfc09
12 changed files with 69 additions and 7 deletions

View File

@@ -321,6 +321,14 @@ void Program::restoreStateFromSystemError() {
}
}
bool Program::textInput(std::string text) {
if(msgBox.getEnabled()) {
return false;
}
//delegate event
return programState->textInput(text);
}
void Program::keyDown(SDL_KeyboardEvent key) {
if(msgBox.getEnabled()) {
//SDL_keysym keystate = Window::getKeystate();