From 1365dd607f51217017f6de4c7246626a6fdd07e8 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 30 Apr 2012 20:37:54 +0000 Subject: Add puglIgnoreKeyRepeat and implement on X11. Add proper command line options for pugl_test. --- pugl/pugl_internal.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pugl/pugl_internal.h') 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; }; @@ -64,6 +65,12 @@ puglGetModifiers(PuglView* view) return view->mods; } +void +puglIgnoreKeyRepeat(PuglView* view, bool ignore) +{ + view->ignoreKeyRepeat = ignore; +} + void puglSetCloseFunc(PuglView* view, PuglCloseFunc closeFunc) { -- cgit v1.2.3