1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-29 21:56:54 +02:00

Add new option to settings

This commit is contained in:
Ivan Savenko 2023-09-08 13:15:29 +03:00
parent 3973624278
commit 8112b8082e
2 changed files with 6 additions and 1 deletions
client/eventsSDL
config/schemas

@ -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
}
}
},