1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-27 00:41:08 +02:00

Added option to disable edge scrolling

This commit is contained in:
Ivan Savenko
2023-06-01 18:48:31 +03:00
parent ec55ec76b6
commit 6283329aeb
12 changed files with 30 additions and 32 deletions

View File

@ -25,7 +25,10 @@ std::unique_ptr<ICursor> CursorHandler::createCursor()
if (settings["video"]["cursor"].String() == "auto")
{
#if defined(VCMI_MOBILE)
return std::make_unique<CursorSoftware>();
if (settings["general"]["userRelativePointer"].Bool())
return std::make_unique<CursorSoftware>();
else
return std::make_unique<CursorHardware>();
#else
return std::make_unique<CursorHardware>();
#endif