diff options
-rw-r--r-- | pugl_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pugl_test.c b/pugl_test.c index a42521a..efcc4a8 100644 --- a/pugl_test.c +++ b/pugl_test.c @@ -181,7 +181,7 @@ onEvent(PuglView* view, const PuglEvent* event) event->key.utf8, event->key.filter ? " (filtered)" : ""); break; case PUGL_MOTION_NOTIFY: - xAngle = fmodf(xAngle + (float)(event->motion.x - lastMouseX), 360.0f); + xAngle = fmodf(xAngle - (float)(event->motion.x - lastMouseX), 360.0f); yAngle = fmodf(yAngle + (float)(event->motion.y - lastMouseY), 360.0f); lastMouseX = event->motion.x; lastMouseY = event->motion.y; |