Own Linux title callback and trim Win32 key state
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user