Skip to content

Commit

Permalink
Fixed compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Kendall committed Jan 26, 2016
1 parent c615738 commit 7ab068d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dinputcorrelation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ QList<LPDIRECTINPUTDEVICE8> vjoyControllers;

void determineCorrelation(HRESULT &winResult, int &result, QMap<UINT, UINT> &correlationMap, HWND dinputWindow, int vjoyControllerCount)
{
QElapsedTimer timer;
HRESULT enumerationResult = ERROR_SUCCESS;
winResult = ERROR_SUCCESS;
result = kNoError;
Expand Down Expand Up @@ -92,8 +93,7 @@ void determineCorrelation(HRESULT &winResult, int &result, QMap<UINT, UINT> &cor
for(int i = 0; i < vjoyControllerCount; ++i) {
SetBtn(true, i+1, i+1);
}

QElapsedTimer timer;

timer.start();
while(correlationMap.count() < vjoyControllerCount && timer.elapsed() < 2000) {
Sleep(20);
Expand Down

0 comments on commit 7ab068d

Please sign in to comment.