Add basic support for absolute mouse input

This commit is contained in:
Cameron Gutman
2020-04-11 16:12:18 -07:00
parent 3840ee8ee7
commit ef6dfa6d91
4 changed files with 73 additions and 14 deletions

View File

@@ -1318,7 +1318,7 @@ void Session::exec(int displayOriginX, int displayOriginY)
m_InputHandler->handleMouseButtonEvent(&event.button);
break;
case SDL_MOUSEMOTION:
m_InputHandler->handleMouseMotionEvent(&event.motion);
m_InputHandler->handleMouseMotionEvent(m_Window, &event.motion);
break;
case SDL_MOUSEWHEEL:
m_InputHandler->handleMouseWheelEvent(&event.wheel);
@@ -1340,7 +1340,7 @@ void Session::exec(int displayOriginX, int displayOriginY)
case SDL_FINGERDOWN:
case SDL_FINGERMOTION:
case SDL_FINGERUP:
m_InputHandler->handleTouchFingerEvent(&event.tfinger);
m_InputHandler->handleTouchFingerEvent(m_Window, &event.tfinger);
break;
}
}