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/pugl.h | |
parent | 9f4a5e733b20f2de1619b46e0f7a36b3b5558f6e (diff) | |
download | pugl-1c1e053d3403a6e03a00db8f3551f6a19302876b.tar.gz pugl-1c1e053d3403a6e03a00db8f3551f6a19302876b.tar.bz2 pugl-1c1e053d3403a6e03a00db8f3551f6a19302876b.zip |
Replace puglIgnoreKeyRepeat() with a hint
Diffstat (limited to 'pugl/pugl.h')
-rw-r--r-- | pugl/pugl.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pugl/pugl.h b/pugl/pugl.h index 850fe62..d04f1aa 100644 --- a/pugl/pugl.h +++ b/pugl/pugl.h @@ -109,6 +109,7 @@ typedef enum { PUGL_SAMPLES, /**< Number of samples per pixel (AA) */ PUGL_DOUBLE_BUFFER, /**< True if double buffering should be used */ PUGL_RESIZABLE, /**< True if window should be resizable */ + PUGL_IGNORE_KEY_REPEAT, /**< True if key repeat events are ignored */ } PuglWindowHint; /** @@ -631,8 +632,10 @@ puglSetEventFunc(PuglView* view, PuglEventFunc eventFunc); /** Ignore synthetic repeated key events. + + @deprecated Use puglInitWindowHint() with @ref PUGL_IGNORE_KEY_REPEAT. */ -PUGL_API void +PUGL_API PUGL_DEPRECATED_BY("puglInitWindowHint") void puglIgnoreKeyRepeat(PuglView* view, bool ignore); /** |