Updated mouse wheel message.

This commit is contained in:
Branimir Karadžić 2014-08-05 22:03:45 -07:00
parent e42c6b3279
commit d18eb84263
2 changed files with 5 additions and 3 deletions

View file

@ -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;

View file

@ -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);
}