diff options
author | David Robillard <d@drobilla.net> | 2012-04-30 20:37:54 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-04-30 20:37:54 +0000 |
commit | 1365dd607f51217017f6de4c7246626a6fdd07e8 (patch) | |
tree | 6e7718c7858f5fe11cba3faae899fd388b10fb05 /pugl/pugl_internal.h | |
parent | 91a4fea4672c54d84bd3e46422e32636351c8053 (diff) | |
download | pugl-1365dd607f51217017f6de4c7246626a6fdd07e8.tar.gz pugl-1365dd607f51217017f6de4c7246626a6fdd07e8.tar.bz2 pugl-1365dd607f51217017f6de4c7246626a6fdd07e8.zip |
Add puglIgnoreKeyRepeat and implement on X11.
Add proper command line options for pugl_test.
Diffstat (limited to 'pugl/pugl_internal.h')
-rw-r--r-- | pugl/pugl_internal.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pugl/pugl_internal.h b/pugl/pugl_internal.h index 21e9eb4..6ddcdf8 100644 --- a/pugl/pugl_internal.h +++ b/pugl/pugl_internal.h @@ -43,6 +43,7 @@ struct PuglViewImpl { int width; int height; int mods; + bool ignoreKeyRepeat; bool redisplay; }; @@ -65,6 +66,12 @@ puglGetModifiers(PuglView* view) } void +puglIgnoreKeyRepeat(PuglView* view, bool ignore) +{ + view->ignoreKeyRepeat = ignore; +} + +void puglSetCloseFunc(PuglView* view, PuglCloseFunc closeFunc) { view->closeFunc = closeFunc; |