Browse Source

[touch] Spend stat points when clicking the buttons

Fixes #4387
pull/4391/head
Anders Jenbo 4 years ago
parent
commit
3b86c7fac4
  1. 12
      Source/controls/touch/event_handlers.cpp

12
Source/controls/touch/event_handlers.cpp

@ -95,6 +95,17 @@ void HandleBottomPanelInteraction(const SDL_Event &event)
}
}
void HandleCharacterPanelInteraction(const SDL_Event &event)
{
if (!chrflag)
return;
if (event.type == SDL_FINGERDOWN)
CheckChrBtns();
else if (event.type == SDL_FINGERUP && chrbtnactive)
ReleaseChrBtns(false);
}
void HandleStashPanelInteraction(const SDL_Event &event)
{
if (pcurs >= CURSOR_FIRSTITEM)
@ -133,6 +144,7 @@ void HandleTouchEvent(const SDL_Event &event)
return;
HandleBottomPanelInteraction(event);
HandleCharacterPanelInteraction(event);
HandleStashPanelInteraction(event);
}

Loading…
Cancel
Save