1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-13 01:20:34 +02:00
Changes were reviewed manually
This commit is contained in:
Alexander Wilms
2024-06-24 03:23:26 +02:00
parent 820b1b446e
commit 02e429e973
277 changed files with 815 additions and 815 deletions

View File

@ -39,7 +39,7 @@ InputSourceGameController::InputSourceGameController():
scrollAxisValueY(0),
scrollPlanDisX(0.0),
scrollPlanDisY(0.0),
configTriggerTreshold(settings["input"]["controllerTriggerTreshold"].Float()),
configTriggerThreshold(settings["input"]["controllerTriggerThreshold"].Float()),
configAxisDeadZone(settings["input"]["controllerAxisDeadZone"].Float()),
configAxisFullZone(settings["input"]["controllerAxisFullZone"].Float()),
configAxisSpeed(settings["input"]["controllerAxisSpeed"].Float()),
@ -142,7 +142,7 @@ double InputSourceGameController::getRealAxisValue(int value) const
void InputSourceGameController::dispatchAxisShortcuts(const std::vector<EShortcut> & shortcutsVector, SDL_GameControllerAxis axisID, int axisValue)
{
if(getRealAxisValue(axisValue) > configTriggerTreshold)
if(getRealAxisValue(axisValue) > configTriggerThreshold)
{
if(!pressedAxes.count(axisID))
{