|
|
|
|
@ -10,6 +10,7 @@
|
|
|
|
|
#include "controls/input.h" |
|
|
|
|
#include "controls/menu_controls.h" |
|
|
|
|
#include "controls/plrctrls.h" |
|
|
|
|
#include "diablo.h" |
|
|
|
|
#include "discord/discord.h" |
|
|
|
|
#include "engine/assets.hpp" |
|
|
|
|
#include "engine/clx_sprite.hpp" |
|
|
|
|
@ -461,6 +462,11 @@ void UiHandleEvents(SDL_Event *event)
|
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (event->type == SDL_KEYUP && event->key.keysym.sym == SDLK_PRINTSCREEN) { |
|
|
|
|
PrintScreen(SDLK_PRINTSCREEN); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (event->type == SDL_KEYDOWN && event->key.keysym.sym == SDLK_RETURN) { |
|
|
|
|
const Uint8 *state = SDLC_GetKeyState(); |
|
|
|
|
if (state[SDLC_KEYSTATE_LALT] != 0 || state[SDLC_KEYSTATE_RALT] != 0) { |
|
|
|
|
|