diff options
author | David Robillard <d@drobilla.net> | 2019-08-02 21:49:16 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-08-02 23:28:15 +0200 |
commit | 1c1e053d3403a6e03a00db8f3551f6a19302876b (patch) | |
tree | d17ecd6498434ef5d24a59e5416aa22d542e48b1 /pugl/detail/implementation.c | |
parent | 9f4a5e733b20f2de1619b46e0f7a36b3b5558f6e (diff) | |
download | pugl-1c1e053d3403a6e03a00db8f3551f6a19302876b.tar.gz pugl-1c1e053d3403a6e03a00db8f3551f6a19302876b.tar.bz2 pugl-1c1e053d3403a6e03a00db8f3551f6a19302876b.zip |
Replace puglIgnoreKeyRepeat() with a hint
Diffstat (limited to 'pugl/detail/implementation.c')
-rw-r--r-- | pugl/detail/implementation.c | 7 |
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 |