editor scaling and rotation

This commit is contained in:
2023-02-05 04:53:54 +00:00
parent 229e86a56a
commit 32ccc02a93
3 changed files with 9 additions and 23 deletions

View File

@@ -100,6 +100,11 @@ static void mb_cb(GLFWwindow *w, int button, int action, int mods)
call_input_signal(keystr);
}
void set_mouse_mode(int mousemode)
{
glfwSetInputMode(mainwin->window, GLFW_CURSOR, mousemode);
}
void input_init()
{
glfwSetCursorPosCallback(mainwin->window, cursor_pos_cb);