From fb2ec4fd62e8218ac485c4ad1992c7e01951159d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 30 Apr 2012 06:10:29 +0000 Subject: Implement special keys and keyboard modifiers on X11. --- pugl/pugl_internal.h | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'pugl/pugl_internal.h') diff --git a/pugl/pugl_internal.h b/pugl/pugl_internal.h index 0b04e5d..21e9eb4 100644 --- a/pugl/pugl_internal.h +++ b/pugl/pugl_internal.h @@ -36,11 +36,13 @@ struct PuglViewImpl { PuglMouseFunc mouseFunc; PuglReshapeFunc reshapeFunc; PuglScrollFunc scrollFunc; + PuglSpecialFunc specialFunc; PuglPlatformData* impl; int width; int height; + int mods; bool redisplay; }; @@ -56,6 +58,12 @@ puglGetHandle(PuglView* view) return view->handle; } +int +puglGetModifiers(PuglView* view) +{ + return view->mods; +} + void puglSetCloseFunc(PuglView* view, PuglCloseFunc closeFunc) { @@ -85,7 +93,7 @@ puglSetMouseFunc(PuglView* view, PuglMouseFunc mouseFunc) { view->mouseFunc = mouseFunc; } - + void puglSetReshapeFunc(PuglView* view, PuglReshapeFunc reshapeFunc) { @@ -97,3 +105,9 @@ puglSetScrollFunc(PuglView* view, PuglScrollFunc scrollFunc) { view->scrollFunc = scrollFunc; } + +void +puglSetSpecialFunc(PuglView* view, PuglSpecialFunc specialFunc) +{ + view->specialFunc = specialFunc; +} -- cgit v1.2.3