This commit is contained in:
milek7
2017-08-18 11:48:13 +02:00
parent ec60853614
commit 6b5084e855
6 changed files with 10 additions and 12 deletions

View File

@@ -109,12 +109,12 @@ void window_resize_callback(GLFWwindow *window, int w, int h)
void cursor_pos_callback(GLFWwindow *window, double x, double y)
{
if (!window)
return;
input::Mouse.move( x, y );
if( true == Global::ControlPicking ) {
glfwSetCursorPos( window, x, y );
}
else {
if( !Global::ControlPicking ) {
glfwSetCursorPos( window, 0, 0 );
}
}