From fc1e6c60efcaaa9adce721441f842fd293e3d65f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 27 May 2023 23:49:08 -0400 Subject: Deprecate redundant key symbols --- include/pugl/pugl.h | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'include/pugl/pugl.h') 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 /** -- cgit v1.2.1