mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-31 22:05:10 +02:00
Add new option to settings
This commit is contained in:
parent
3973624278
commit
8112b8082e
@ -39,6 +39,7 @@ InputSourceTouch::InputSourceTouch()
|
||||
params.relativeModeSpeedFactor = settings["general"]["relativePointerSpeedMultiplier"].Float();
|
||||
params.longTouchTimeMilliseconds = settings["general"]["longTouchTimeMilliseconds"].Float();
|
||||
params.hapticFeedbackEnabled = settings["general"]["hapticFeedback"].Bool();
|
||||
params.touchToleranceDistance = settings["input"]["touchToleranceDistance"].Bool();
|
||||
|
||||
if (params.useRelativeMode)
|
||||
state = TouchState::RELATIVE_MODE;
|
||||
|
@ -214,11 +214,15 @@
|
||||
"type" : "object",
|
||||
"additionalProperties" : false,
|
||||
"default" : {},
|
||||
"required" : [ "radialWheelGarrisonSwipe" ],
|
||||
"required" : [ "radialWheelGarrisonSwipe", "touchToleranceDistance" ],
|
||||
"properties" : {
|
||||
"radialWheelGarrisonSwipe" : {
|
||||
"type" : "boolean",
|
||||
"default" : true
|
||||
},
|
||||
"touchToleranceDistance" : {
|
||||
"type" : "number",
|
||||
"default" : 20
|
||||
}
|
||||
}
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user