Skip to content

Commit

Permalink
cleanup from testing
Browse files Browse the repository at this point in the history
  • Loading branch information
xan1242 committed May 9, 2022
1 parent 07324a6 commit a369a2a
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,6 @@ class InputDevice
if (bDoPolling)
{
float fresult = 0;
float mresult = 0; // mouse result
rdi = fDeviceIndex;
if (KeyboardReadingMode == KB_READINGMODE_BUFFERED)
bCurrentVKeyState = VKeyStates[0][VKeyBindings[i]] >> 7;
Expand All @@ -859,25 +858,6 @@ class InputDevice
{
rdi = 1; // debug (camera) actions are always read from the second port, but the PC version omits it entirely so this is a workaround

//// mouselook
//switch (i)
//{
//case DEBUGACTION_LOOK_UP:
// mresult = MouseRelativePosCalcY();
// break;
//case DEBUGACTION_LOOK_DOWN:
// mresult = -MouseRelativePosCalcY();
// break;
//case DEBUGACTION_LOOK_LEFT:
// mresult = -MouseRelativePosCalcX();
// break;
//case DEBUGACTION_LOOK_RIGHT:
// mresult = MouseRelativePosCalcX();
// break;
//default:
// break;
//}

}


Expand Down Expand Up @@ -953,7 +933,7 @@ class InputDevice
}

// write value to the main array
CurrValues[fDeviceIndex][i] = fresult + mresult;
CurrValues[fDeviceIndex][i] = fresult;

// update prev values
if (CurrValues[fDeviceIndex][i] != PrevValues[fDeviceIndex][i])
Expand Down

0 comments on commit a369a2a

Please sign in to comment.