Skip to content

Commit

Permalink
Divides the mouse position by the scaling factor.
Browse files Browse the repository at this point in the history
  • Loading branch information
bXi committed Jul 28, 2024
1 parent fd6cf37 commit ae28c0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion input/inputhandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ vf2d Input::_getMousePosition() {

SDL_GetMouseState(&xMouse, &yMouse);

return {xMouse, yMouse};
return {xMouse / Window::GetScale(), yMouse / Window::GetScale()};
#endif
}

Expand Down

0 comments on commit ae28c0b

Please sign in to comment.