1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

haptic feedback on radial menu action

This commit is contained in:
Michael
2023-07-23 15:17:30 +02:00
committed by GitHub
parent c3584f7f91
commit ce00069dcd
4 changed files with 14 additions and 2 deletions

View File

@@ -13,6 +13,7 @@
#include "Images.h"
#include "TextControls.h"
#include "../eventsSDL/InputHandler.h"
#include "../gui/CGuiHandler.h"
#include "../gui/WindowHandler.h"
#include "../render/IImage.h"
@@ -137,5 +138,8 @@ void RadialMenu::gesture(bool on, const Point & initialPosition, const Point & f
// we need to close this window first so if action spawns a new window it won't be closed instead
GH.windows().popWindows(1);
if (item)
{
GH.input().hapticFeedback();
item->callback();
}
}