aboutsummaryrefslogtreecommitdiffstats
path: root/pugl_test.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-06-29 14:33:35 +0200
committerDavid Robillard <d@drobilla.net>2019-06-29 18:16:54 +0200
commita70a3d26eb47598f6b7a90978e1c2172bea5e499 (patch)
treea3ef450bd6fb23acd6c615f4d3b42d0ee69dcb6e /pugl_test.c
parentd34e0eb19db33b32644544207bd38908c8e35f68 (diff)
downloadpugl-a70a3d26eb47598f6b7a90978e1c2172bea5e499.tar.gz
pugl-a70a3d26eb47598f6b7a90978e1c2172bea5e499.tar.bz2
pugl-a70a3d26eb47598f6b7a90978e1c2172bea5e499.zip
Fix horizontal mouse axis in pugl_test
Diffstat (limited to 'pugl_test.c')
-rw-r--r--pugl_test.c2
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;