diff options
author | David Robillard <d@drobilla.net> | 2012-04-30 06:10:29 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-04-30 06:10:29 +0000 |
commit | fb2ec4fd62e8218ac485c4ad1992c7e01951159d (patch) | |
tree | 7b4d9ebc8a7306dfd7b780b0a60131e4c5effa5b /pugl/pugl_internal.h | |
parent | c0059bd2d7673a155efca5cb86e92b8106f12ac5 (diff) | |
download | pugl-fb2ec4fd62e8218ac485c4ad1992c7e01951159d.tar.gz pugl-fb2ec4fd62e8218ac485c4ad1992c7e01951159d.tar.bz2 pugl-fb2ec4fd62e8218ac485c4ad1992c7e01951159d.zip |
Implement special keys and keyboard modifiers on X11.
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; +} |