diff options
author | David Robillard <d@drobilla.net> | 2020-07-05 15:01:13 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-07-05 18:47:39 +0200 |
commit | 90abfef17294c1b382f43007d984b93c200efa9d (patch) | |
tree | d8290397997ac31d7f9b9b565cd16ee88c11f937 /pugl/pugl.h | |
parent | 6c2460414082b989487abcad2ca2018a16ecdbd7 (diff) | |
download | pugl-90abfef17294c1b382f43007d984b93c200efa9d.tar.gz pugl-90abfef17294c1b382f43007d984b93c200efa9d.tar.bz2 pugl-90abfef17294c1b382f43007d984b93c200efa9d.zip |
Replace isHint bool with a flag
I don't have any particular future use case in mind, but I think the concept
makes sense for general events and it seems it could be useful for things like
gestures as well. Also fixes another padding warning in the API.
Diffstat (limited to 'pugl/pugl.h')
-rw-r--r-- | pugl/pugl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pugl/pugl.h b/pugl/pugl.h index 8c0bd6d..c32a17d 100644 --- a/pugl/pugl.h +++ b/pugl/pugl.h @@ -221,7 +221,8 @@ typedef enum { Common flags for all event types. */ typedef enum { - PUGL_IS_SEND_EVENT = 1 ///< Event is synthetic + PUGL_IS_SEND_EVENT = 1, ///< Event is synthetic + PUGL_IS_HINT = 2 ///< Event is a hint (not direct user input) } PuglEventFlag; /** @@ -474,7 +475,6 @@ typedef struct { double xRoot; ///< Root-relative X coordinate double yRoot; ///< Root-relative Y coordinate PuglMods state; ///< Bitwise OR of #PuglMod flags - bool isHint; ///< True iff this event is a motion hint } PuglEventMotion; /** |