Own Linux title callback and trim Win32 key state

This commit is contained in:
2026-06-17 10:46:02 +02:00
parent 3941c54d90
commit 00f97c71b5
6 changed files with 23 additions and 20 deletions

View File

@@ -66,6 +66,9 @@ int main(int argc, char** args)
return 1;
}
pp::platform::legacy::set_legacy_glfw_window(wnd);
pp::platform::linux_desktop::set_fps_title_callback([wnd](std::string title) {
glfwSetWindowTitle(wnd, title.c_str());
});
glfwSetCursorPosCallback(wnd, [](GLFWwindow* wnd, double x, double y){
g_cursor_pos = glm::vec2(x, y);
@@ -129,6 +132,7 @@ int main(int argc, char** args)
app.ui_thread_stop();
app.render_thread_stop();
app.terminate();
pp::platform::linux_desktop::set_fps_title_callback({});
return 0;
}