Unified nomenclature for cursor positions.

This commit is contained in:
Camilla Berglund
2012-06-22 13:53:02 +02:00
parent e6896a499c
commit cef9dea1d2
14 changed files with 102 additions and 101 deletions

View File

@@ -323,10 +323,10 @@ void mouse_button_callback(GLFWwindow window, int button, int action)
//========================================================================
// Callback function for mouse motion events
// Callback function for cursor motion events
//========================================================================
void mouse_position_callback(GLFWwindow window, int x, int y)
void cursor_position_callback(GLFWwindow window, int x, int y)
{
if (locked)
{
@@ -403,7 +403,7 @@ int main(int argc, char* argv[])
// Window resize handler
glfwSetWindowSizeCallback(window_resize_callback);
glfwSetMouseButtonCallback(mouse_button_callback);
glfwSetMousePosCallback(mouse_position_callback);
glfwSetCursorPosCallback(cursor_position_callback);
glfwSetScrollCallback(scroll_callback);
// Initialize OpenGL