102 if (button == GLUT_LEFT_BUTTON)
104 if (state == GLUT_DOWN)
float cameraAngleX
Camera angle around the X-axis.
Definition mouse_handler.cpp:19
float cameraAngleY
Camera angle around the Y-axis.
Definition mouse_handler.cpp:28
void mouseMotion(int x, int y)
Handles mouse motion events to adjust camera orientation.
Definition mouse_handler.cpp:66
int lastMouseY
Y-coordinate of the last mouse position.
Definition mouse_handler.cpp:46
int lastMouseX
X-coordinate of the last mouse position.
Definition mouse_handler.cpp:37
bool leftButtonPressed
State of the left mouse button.
Definition mouse_handler.cpp:55
void mouseButton(int button, int state, int x, int y)
Handles mouse button events to toggle camera control.
Definition mouse_handler.cpp:100
Handles mouse input for camera control.