UInputSettings::bUseMouseForTouch doesn't work properly when changed on runtime.

Hi hope you all are doing well. I have a need to change this value on runtime. I use this code to get it:

	if (UInputSettings* InputSettings = UInputSettings::GetInputSettings())
	{

			InputSettings->bUseMouseForTouch = newBoolValue;

this visibly changes value in project setting but applies it to true only after UI button click but never apples it to false. So my problem is changing value of this variable reliably on runtime. Do you have any suggestion or advices how to use UInputSettings::bUseMouseForTouch correctly?