Rewrote how input text box focus is decided
This commit is contained in:
parent
1585e0aa67
commit
8b3e321ab5
41 changed files with 317 additions and 490 deletions
|
|
@ -422,6 +422,13 @@ void MainProgram::input_window_scale_callback(const InputManager::WindowScaleCal
|
|||
post_callback();
|
||||
}
|
||||
|
||||
std::optional<InputManager::TextBoxStartInfo> MainProgram::get_text_box_start_info() {
|
||||
auto toRet = g.get_text_box_start_info();
|
||||
if(toRet)
|
||||
return toRet;
|
||||
return screen->get_text_box_start_info();
|
||||
}
|
||||
|
||||
void MainProgram::toggle_full_screen() {
|
||||
window.fullscreen = !window.fullscreen;
|
||||
SDL_SetWindowFullscreen(window.sdlWindow, window.fullscreen);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue