mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-26 03:52:01 +02:00
Mobile platforms will use software cursor as default
This commit is contained in:
parent
f5a7f5173f
commit
5484efde90
@ -7,6 +7,7 @@
|
|||||||
* Full text of license available in license.txt file, in main folder
|
* Full text of license available in license.txt file, in main folder
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "StdInc.h"
|
#include "StdInc.h"
|
||||||
#include "CursorHandler.h"
|
#include "CursorHandler.h"
|
||||||
|
|
||||||
@ -17,14 +18,22 @@
|
|||||||
#include "CAnimation.h"
|
#include "CAnimation.h"
|
||||||
#include "../../lib/CConfigHandler.h"
|
#include "../../lib/CConfigHandler.h"
|
||||||
|
|
||||||
//#include "../CMT.h"
|
|
||||||
|
|
||||||
std::unique_ptr<ICursor> CursorHandler::createCursor()
|
std::unique_ptr<ICursor> CursorHandler::createCursor()
|
||||||
{
|
{
|
||||||
if (settings["video"]["softwareCursor"].Bool())
|
if (settings["video"]["cursor"].String() == "auto")
|
||||||
|
{
|
||||||
|
#if defined(VCMI_ANDROID) || defined(VCMI_IOS)
|
||||||
return std::make_unique<CursorSoftware>();
|
return std::make_unique<CursorSoftware>();
|
||||||
else
|
#else
|
||||||
return std::make_unique<CursorHardware>();
|
return std::make_unique<CursorHardware>();
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
if (settings["video"]["cursor"].String() == "hardware")
|
||||||
|
return std::make_unique<CursorHardware>();
|
||||||
|
|
||||||
|
assert(settings["video"]["cursor"].String() == "software");
|
||||||
|
return std::make_unique<CursorSoftware>();
|
||||||
}
|
}
|
||||||
|
|
||||||
CursorHandler::CursorHandler()
|
CursorHandler::CursorHandler()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user