summaryrefslogtreecommitdiff
path: root/pugl/pugl_internal.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-04-30 06:10:29 +0000
committerDavid Robillard <d@drobilla.net>2012-04-30 06:10:29 +0000
commitfb2ec4fd62e8218ac485c4ad1992c7e01951159d (patch)
tree7b4d9ebc8a7306dfd7b780b0a60131e4c5effa5b /pugl/pugl_internal.h
parentc0059bd2d7673a155efca5cb86e92b8106f12ac5 (diff)
Implement special keys and keyboard modifiers on X11.
Diffstat (limited to 'pugl/pugl_internal.h')
-rw-r--r--pugl/pugl_internal.h16
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;
+}