diff options
author | David Robillard <d@drobilla.net> | 2023-05-27 23:49:08 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-05-29 20:07:29 -0400 |
commit | fc1e6c60efcaaa9adce721441f842fd293e3d65f (patch) | |
tree | 47e5155c38212a65f8976a0dba3a3c80c246b134 /include | |
parent | 6c41747975d22f35342791dbeb595d2a08f0950b (diff) | |
download | pugl-fc1e6c60efcaaa9adce721441f842fd293e3d65f.tar.gz pugl-fc1e6c60efcaaa9adce721441f842fd293e3d65f.tar.bz2 pugl-fc1e6c60efcaaa9adce721441f842fd293e3d65f.zip |
Deprecate redundant key symbols
Diffstat (limited to 'include')
-rw-r--r-- | include/pugl/pugl.h | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/include/pugl/pugl.h b/include/pugl/pugl.h index 9d29ed8..481754b 100644 --- a/include/pugl/pugl.h +++ b/include/pugl/pugl.h @@ -370,17 +370,13 @@ typedef enum { PUGL_KEY_HOME, PUGL_KEY_END, PUGL_KEY_INSERT, - PUGL_KEY_SHIFT, - PUGL_KEY_SHIFT_L = PUGL_KEY_SHIFT, + PUGL_KEY_SHIFT_L, PUGL_KEY_SHIFT_R, - PUGL_KEY_CTRL, - PUGL_KEY_CTRL_L = PUGL_KEY_CTRL, + PUGL_KEY_CTRL_L, PUGL_KEY_CTRL_R, - PUGL_KEY_ALT, - PUGL_KEY_ALT_L = PUGL_KEY_ALT, + PUGL_KEY_ALT_L, PUGL_KEY_ALT_R, - PUGL_KEY_SUPER, - PUGL_KEY_SUPER_L = PUGL_KEY_SUPER, + PUGL_KEY_SUPER_L, PUGL_KEY_SUPER_R, PUGL_KEY_MENU, PUGL_KEY_CAPS_LOCK, @@ -2142,6 +2138,14 @@ puglRequestAttention(PuglView* view) puglGetViewStyle(view) | PUGL_VIEW_STYLE_DEMANDING); } +# define PUGL_KEY_SHIFT PUGL_KEY_SHIFT_L + +# define PUGL_KEY_CTRL PUGL_KEY_CTRL_L + +# define PUGL_KEY_ALT PUGL_KEY_ALT_L + +# define PUGL_KEY_SUPER PUGL_KEY_SUPER_L + #endif // PUGL_DISABLE_DEPRECATED /** |