Skip to content

Commit

Permalink
Fixed bug where not all D3D8 mouse events were processed, resulting i…
Browse files Browse the repository at this point in the history
…n slower movements.

Fixed issue #334
  • Loading branch information
SebastienLussier authored and dscharrer committed Jul 29, 2012
1 parent 6bedaab commit 86221e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/input/DInput8Backend.cpp
Expand Up @@ -637,13 +637,13 @@ void DInput8Backend::getRelativeMouseCoords(int & relX, int & relY, int & relWhe
const DIDEVICEOBJECTDATA * od = DI_MouseState->mousestate;
for(int nb = DI_MouseState->nbele; nb; nb--, od++) {
if(od->dwOfs == (DWORD)DIMOFS_X) {
relX = od->dwData;
relX += od->dwData;
}
else if(od->dwOfs == (DWORD)DIMOFS_Y) {
relY = od->dwData;
relY += od->dwData;
}
else if(od->dwOfs == (DWORD)DIMOFS_Z) {
relWheel = od->dwData;
relWheel += od->dwData;
}
}
}
Expand Down

0 comments on commit 86221e0

Please sign in to comment.