X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fsystem.c;h=4f27d60a614cd0fb0649814fe7538391d6168d3f;hb=860524879132cd3d7f63f66d657aea060f25929c;hp=2b283c1a0c5d6813b7b533d30a1c10b1c66f21d6;hpb=6746a99c1d7348748c06d457f8496b4253bb7c84;p=rocksndiamonds.git diff --git a/src/libgame/system.c b/src/libgame/system.c index 2b283c1a..4f27d60a 100644 --- a/src/libgame/system.c +++ b/src/libgame/system.c @@ -329,6 +329,11 @@ void SetDrawDeactivationMask(int draw_deactivation_mask) gfx.draw_deactivation_mask = draw_deactivation_mask; } +int GetDrawDeactivationMask() +{ + return gfx.draw_deactivation_mask; +} + void SetDrawBackgroundMask(int draw_background_mask) { gfx.draw_background_mask = draw_background_mask; @@ -1578,9 +1583,9 @@ KeyMod GetKeyModStateFromEvents() void StartTextInput(int x, int y, int width, int height) { #if defined(TARGET_SDL2) +#if defined(HAS_SCREEN_KEYBOARD) SDL_StartTextInput(); -#if defined(HAS_SCREEN_KEYBOARD) if (y + height > SCREEN_KEYBOARD_POS(video.height)) { video.shifted_up_pos = y + height - SCREEN_KEYBOARD_POS(video.height); @@ -1594,9 +1599,9 @@ void StartTextInput(int x, int y, int width, int height) void StopTextInput() { #if defined(TARGET_SDL2) +#if defined(HAS_SCREEN_KEYBOARD) SDL_StopTextInput(); -#if defined(HAS_SCREEN_KEYBOARD) if (video.shifted_up) { video.shifted_up_pos = 0; @@ -1645,3 +1650,8 @@ boolean CheckJoystickOpened(int nr) { return SDLCheckJoystickOpened(nr); } + +void ClearJoystickState() +{ + SDLClearJoystickState(); +}