mirror of
https://github.com/glfw/glfw.git
synced 2024-11-22 01:55:09 +00:00
Moved note to new place of inversion.
This commit is contained in:
parent
4c64e94d39
commit
3b9a14fc9c
@ -683,12 +683,7 @@ 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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user