From a70a3d26eb47598f6b7a90978e1c2172bea5e499 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 29 Jun 2019 14:33:35 +0200 Subject: Fix horizontal mouse axis in pugl_test --- pugl_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.1