Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
something about saving input between read only and read write
  • Loading branch information
Madghostek committed Jul 26, 2020
1 parent 6814bd7 commit 9d3770f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tasinput_plugin/src/DefDI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -796,6 +796,11 @@ void Status::GetKeys(BUTTONS * Keys)
overrideAllowed = true;
if (comboTask != C_PAUSE)
{
if (copyButtons)
{
ControllerInput.X_AXIS = overrideX;
ControllerInput.Y_AXIS = overrideY;
}
copyButtons = false;
SetKeys(ControllerInput);
}
Expand Down Expand Up @@ -825,6 +830,7 @@ void Status::SetKeys(BUTTONS ControllerInput)
if (copyButtons)
{
buttonOverride.Value = ControllerInput.Value;
buttonOverride.X_AXIS = buttonOverride.Y_AXIS = 0;
}
copyButtons = true;
bool changed = false;
Expand Down

0 comments on commit 9d3770f

Please sign in to comment.