Restore KMOD_RESERVED for backward compatibility Some applications check for KMOD_RESERVED but it was replaced with KMOD_SCROLL in https://github.com/libsdl-org/SDL/commit/cb1e20b058f1de55b98f32b7d16cff1f896f88dd.
diff --git a/include/SDL_keycode.h b/include/SDL_keycode.h
index f94fcec..14a24e3 100644
--- a/include/SDL_keycode.h
+++ b/include/SDL_keycode.h
@@ -343,7 +343,9 @@ typedef enum
KMOD_CTRL = KMOD_LCTRL | KMOD_RCTRL,
KMOD_SHIFT = KMOD_LSHIFT | KMOD_RSHIFT,
KMOD_ALT = KMOD_LALT | KMOD_RALT,
- KMOD_GUI = KMOD_LGUI | KMOD_RGUI
+ KMOD_GUI = KMOD_LGUI | KMOD_RGUI,
+
+ KMOD_RESERVED = KMOD_SCROLL /* This is for source-level compatibility with SDL 2.0.0. */
} SDL_Keymod;
#endif /* SDL_keycode_h_ */