shithub: npe

Download patch

ref: 61db9b4fbe5ad66d0600bca8c39171c027ae2ecd
parent: c94cd3711877ba635b3b75c86dc9cd3ad8fc4c23
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Sun Jun 20 06:42:34 EDT 2021

sdl2: add KMOD_SHIFT, KMOD_CTRL, KMOD_ALT and KMOD_GUI

--- a/include/npe/SDL2/SDL_keycode.h
+++ b/include/npe/SDL2/SDL_keycode.h
@@ -100,6 +100,11 @@
 	KMOD_LGUI = 1<<3,
 	KMOD_RGUI = KMOD_LGUI,
 	KMOD_CAPS = 1<<4,
+
+	KMOD_SHIFT = KMOD_LSHIFT|KMOD_RSHIFT,
+	KMOD_CTRL = KMOD_LCTRL|KMOD_RCTRL,
+	KMOD_ALT = KMOD_LALT|KMOD_RALT,
+	KMOD_GUI = KMOD_LGUI|KMOD_RGUI,
 };
 
 #endif