diff options
Diffstat (limited to 'pugl/pugl_internal.h')
-rw-r--r-- | pugl/pugl_internal.h | 16 |
1 files changed, 15 insertions, 1 deletions
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; +} |