Moved note to new place of inversion.

This commit is contained in:
Camilla Berglund 2014-10-26 18:29:34 +01:00
parent 4c64e94d39
commit 3b9a14fc9c
2 changed files with 1 additions and 5 deletions

View File

@ -683,13 +683,8 @@ static int translateKey(unsigned int key)
}
if (fabs(deltaX) > 0.0 || fabs(deltaY) > 0.0)
{
// NOTE: The X-axis is inverted for consistency with Windows and X11.
// Natural scrolling inverts both axes, making it consistent with
// the similarly named feature on modern X11 desktop systems.
_glfwInputScroll(window, deltaX, deltaY);
}
}
- (void)resetCursorRects
{

View File

@ -728,6 +728,7 @@ static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg,
case WM_MOUSEHWHEEL:
{
// This message is only sent on Windows Vista and later
// NOTE: The X-axis is inverted for consistency with OS X and X11.
_glfwInputScroll(window, -((SHORT) HIWORD(wParam) / (double) WHEEL_DELTA), 0.0);
return 0;
}