mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2025-03-23 05:15:28 -04:00
Fixed mouse scroll value on Windows.
This commit is contained in:
parent
2d7b134b3b
commit
5453b2cf40
1 changed files with 1 additions and 1 deletions
|
@ -706,7 +706,7 @@ namespace entry
|
||||||
ScreenToClient(_hwnd, &pt);
|
ScreenToClient(_hwnd, &pt);
|
||||||
int32_t mx = pt.x;
|
int32_t mx = pt.x;
|
||||||
int32_t my = pt.y;
|
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);
|
m_eventQueue.postMouseEvent(findHandle(_hwnd), mx, my, m_mz);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue