aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/detail/implementation.c
diff options
context:
space:
mode:
Diffstat (limited to 'pugl/detail/implementation.c')
-rw-r--r--pugl/detail/implementation.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/pugl/detail/implementation.c b/pugl/detail/implementation.c
index 45e21c5..7eeba01 100644
--- a/pugl/detail/implementation.c
+++ b/pugl/detail/implementation.c
@@ -29,7 +29,7 @@ static PuglHints
puglDefaultHints(void)
{
static const PuglHints hints = {
- 2, 0, 4, 4, 4, 4, 24, 8, 0, true, true, false
+ 2, 0, 4, 4, 4, 4, 24, 8, 0, true, true, false, false
};
return hints;
}
@@ -97,6 +97,9 @@ puglInitWindowHint(PuglView* view, PuglWindowHint hint, int value)
case PUGL_RESIZABLE:
view->hints.resizable = value;
break;
+ case PUGL_IGNORE_KEY_REPEAT:
+ view->hints.ignoreKeyRepeat = value;
+ break;
}
}
@@ -208,7 +211,7 @@ puglLeaveContext(PuglView* view, bool drawing)
void
puglIgnoreKeyRepeat(PuglView* view, bool ignore)
{
- view->ignoreKeyRepeat = ignore;
+ puglInitWindowHint(view, PUGL_IGNORE_KEY_REPEAT, ignore);
}
void