From 8ecb682579e5a8236cddf151ec200f5ea07d3292 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 17 Mar 2020 18:43:41 +0100 Subject: Use clearer names for pointer events These old "notify" names are a smell from X11 which is a bit strange and inconsistent here, since nearly everything is a "notification" of sorts. I think the new names here are much more clear since they are consistent with the keyboard focus events. --- examples/pugl_embed_demo.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'examples/pugl_embed_demo.c') diff --git a/examples/pugl_embed_demo.c b/examples/pugl_embed_demo.c index a540b67..313a92c 100644 --- a/examples/pugl_embed_demo.c +++ b/examples/pugl_embed_demo.c @@ -193,7 +193,7 @@ onParentEvent(PuglView* view, const PuglEvent* event) case PUGL_KEY_PRESS: onKeyPress(view, &event->key, "Parent: "); break; - case PUGL_MOTION_NOTIFY: + case PUGL_MOTION: break; case PUGL_CLOSE: app->quit = 1; @@ -230,7 +230,7 @@ onEvent(PuglView* view, const PuglEvent* event) case PUGL_KEY_PRESS: onKeyPress(view, &event->key, "Child: "); break; - case PUGL_MOTION_NOTIFY: + case PUGL_MOTION: app->xAngle -= event->motion.x - app->lastMouseX; app->yAngle += event->motion.y - app->lastMouseY; app->lastMouseX = event->motion.x; @@ -246,10 +246,10 @@ onEvent(PuglView* view, const PuglEvent* event) puglPostRedisplay(view); } break; - case PUGL_ENTER_NOTIFY: + case PUGL_POINTER_IN: app->mouseEntered = true; break; - case PUGL_LEAVE_NOTIFY: + case PUGL_POINTER_OUT: app->mouseEntered = false; break; case PUGL_TIMER: -- cgit v1.2.1