Closed Ragora closed 8 years ago
All of the keyboard input for name entry occurs in ChooseNamePanel::handleEvents()
. It's kind of messy for the moment, but it should work.
SDL listens for any new events, like changes in button state, so if it didn't hear your key press, then perhaps the application window wasn't focused properly (like you said with your environment).
Something to watch for is that if Debug::check
handles a failure case, the app will stop and wait for std::getch
before exiting. At least with Linux, this means having to go back to the terminal and press enter to close the window.
It's the same with Windows. The behavior for Debug::check()
could be changed in the future if it would be more desirable to write to a log.txt
file instead.
Are there still any problems with this? I'm thinking that if it wasn't easily reproducible then I should close this issue for now and reopen it later if there are other reports.
Probably should for now, I haven't been around to test things lately.
I only noticed this during trying to check into #26 on my Linux machine here. Probably caused by my rapid clicking through the menus, but that apparently caused the game to be unable to capture my keyboard input (at least for the name entry after you select your class).
I'll have to see if its easily reproducible.
Edit So far I haven't been able to reproduce, it is possible that it was just a bug in my desktop environment as my input just really wasn't shifting from CLion to OpenTESArena.