Restore KMOD_RESERVED for backward compatibility

Some applications check for KMOD_RESERVED but it was replaced with
KMOD_SCROLL in cb1e20b058.
main
Zack Middleton 2021-08-15 12:41:27 -04:00 committed by Ozkan Sezer
parent b161c9ba44
commit 83bb136619
1 changed files with 3 additions and 1 deletions

View File

@ -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_ */