mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Fixed mouse scroll value on Windows.
This commit is contained in:
@@ -706,7 +706,7 @@ namespace entry
|
||||
ScreenToClient(_hwnd, &pt);
|
||||
int32_t mx = pt.x;
|
||||
int32_t my = pt.y;
|
||||
m_mz += GET_WHEEL_DELTA_WPARAM(_wparam);
|
||||
m_mz += GET_WHEEL_DELTA_WPARAM(_wparam)/WHEEL_DELTA;
|
||||
m_eventQueue.postMouseEvent(findHandle(_hwnd), mx, my, m_mz);
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user