mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
Updated mouse wheel message.
This commit is contained in:
parent
e42c6b3279
commit
d18eb84263
2 changed files with 5 additions and 3 deletions
|
@ -380,10 +380,13 @@ namespace entry
|
|||
|
||||
case WM_MOUSEWHEEL:
|
||||
{
|
||||
int32_t mx = GET_X_LPARAM(_lparam);
|
||||
int32_t my = GET_Y_LPARAM(_lparam);
|
||||
POINT pt = { GET_X_LPARAM(_lparam), GET_Y_LPARAM(_lparam) };
|
||||
ScreenToClient(m_hwnd, &pt);
|
||||
int32_t mx = pt.x;
|
||||
int32_t my = pt.y;
|
||||
int32_t mz = GET_WHEEL_DELTA_WPARAM(_wparam);
|
||||
m_eventQueue.postMouseEvent(mx, my, mz);
|
||||
m_eventQueue.postMouseEvent(mx, my, 0);
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
|
@ -204,7 +204,6 @@ void inputSetKeyState(entry::Key::Enum _key, uint8_t _modifiers, bool _down)
|
|||
|
||||
void inputSetMousePos(int32_t _mx, int32_t _my, int32_t _mz)
|
||||
{
|
||||
DBG("%d, %d, %d", _mx, _my, _mz);
|
||||
s_input.m_mouse.setPos(_mx, _my, _mz);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue