mirror of
https://github.com/vcmi/vcmi.git
synced 2025-04-15 11:46:56 +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.relativeModeSpeedFactor = settings["general"]["relativePointerSpeedMultiplier"].Float();
|
||||||
params.longTouchTimeMilliseconds = settings["general"]["longTouchTimeMilliseconds"].Float();
|
params.longTouchTimeMilliseconds = settings["general"]["longTouchTimeMilliseconds"].Float();
|
||||||
params.hapticFeedbackEnabled = settings["general"]["hapticFeedback"].Bool();
|
params.hapticFeedbackEnabled = settings["general"]["hapticFeedback"].Bool();
|
||||||
|
params.touchToleranceDistance = settings["input"]["touchToleranceDistance"].Bool();
|
||||||
|
|
||||||
if (params.useRelativeMode)
|
if (params.useRelativeMode)
|
||||||
state = TouchState::RELATIVE_MODE;
|
state = TouchState::RELATIVE_MODE;
|
||||||
|
@ -214,11 +214,15 @@
|
|||||||
"type" : "object",
|
"type" : "object",
|
||||||
"additionalProperties" : false,
|
"additionalProperties" : false,
|
||||||
"default" : {},
|
"default" : {},
|
||||||
"required" : [ "radialWheelGarrisonSwipe" ],
|
"required" : [ "radialWheelGarrisonSwipe", "touchToleranceDistance" ],
|
||||||
"properties" : {
|
"properties" : {
|
||||||
"radialWheelGarrisonSwipe" : {
|
"radialWheelGarrisonSwipe" : {
|
||||||
"type" : "boolean",
|
"type" : "boolean",
|
||||||
"default" : true
|
"default" : true
|
||||||
|
},
|
||||||
|
"touchToleranceDistance" : {
|
||||||
|
"type" : "number",
|
||||||
|
"default" : 20
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user