Skip to content

Commit 7ab068d

Browse files
author
Brian Kendall
committed
Fixed compiler warning
1 parent c615738 commit 7ab068d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dinputcorrelation.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ QList<LPDIRECTINPUTDEVICE8> vjoyControllers;
3737

3838
void determineCorrelation(HRESULT &winResult, int &result, QMap<UINT, UINT> &correlationMap, HWND dinputWindow, int vjoyControllerCount)
3939
{
40+
QElapsedTimer timer;
4041
HRESULT enumerationResult = ERROR_SUCCESS;
4142
winResult = ERROR_SUCCESS;
4243
result = kNoError;
@@ -92,8 +93,7 @@ void determineCorrelation(HRESULT &winResult, int &result, QMap<UINT, UINT> &cor
9293
for(int i = 0; i < vjoyControllerCount; ++i) {
9394
SetBtn(true, i+1, i+1);
9495
}
95-
96-
QElapsedTimer timer;
96+
9797
timer.start();
9898
while(correlationMap.count() < vjoyControllerCount && timer.elapsed() < 2000) {
9999
Sleep(20);

0 commit comments

Comments
 (0)