mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
make it also usable on android
This commit is contained in:
@@ -97,7 +97,9 @@ GeneralOptionsTab::GeneralOptionsTab()
|
||||
OBJECT_CONSTRUCTION;
|
||||
setRedrawParent(true);
|
||||
|
||||
addConditional("touchscreen", GH.input().hasTouchInputDevice());
|
||||
addConditional("touchscreen", GH.input().getCurrentInputMode() == InputMode::TOUCH);
|
||||
addConditional("keyboardMouse", GH.input().getCurrentInputMode() == InputMode::KEYBOARD_AND_MOUSE);
|
||||
addConditional("controller", GH.input().getCurrentInputMode() == InputMode::CONTROLLER);
|
||||
#ifdef VCMI_MOBILE
|
||||
addConditional("mobile", true);
|
||||
addConditional("desktop", false);
|
||||
|
||||
Reference in New Issue
Block a user