Skip to content

Commit

Permalink
Fix again...
Browse files Browse the repository at this point in the history
Previous commit caused some issues
  • Loading branch information
Madghostek committed Jul 27, 2020
1 parent 9d3770f commit 9a1951c
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions tasinput_plugin/src/DefDI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -796,17 +796,12 @@ void Status::GetKeys(BUTTONS * Keys)
overrideAllowed = true;
if (comboTask != C_PAUSE)
{
if (copyButtons)
{
ControllerInput.X_AXIS = overrideX;
ControllerInput.Y_AXIS = overrideY;
}
if (!copyButtons) SetKeys(ControllerInput); //don't overwrite after switching to read write
else LastControllerInput = ControllerInput;
copyButtons = false;
SetKeys(ControllerInput);
}
ControllerInput.X_AXIS = overrideX;
ControllerInput.Y_AXIS = overrideY;

//Pass Button Info to Emulator
Keys->Value = ControllerInput.Value;
buttonOverride.Value = oldOverride;
Expand All @@ -827,7 +822,7 @@ void Status::GetKeys(BUTTONS * Keys)

void Status::SetKeys(BUTTONS ControllerInput)
{
if (copyButtons)
if (copyButtons) //copy m64 data to current input
{
buttonOverride.Value = ControllerInput.Value;
buttonOverride.X_AXIS = buttonOverride.Y_AXIS = 0;
Expand Down

0 comments on commit 9a1951c

Please sign in to comment.