MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / getMousePosition

Method getMousePosition

src/bzflag/MainWindow.cpp:117–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115
116
117void MainWindow::getMousePosition(int& mx, int& my) const {
118 window->getMouse(mx, my);
119 mx -= (width >> 1) + xOrigin;
120 my -= (viewHeight >> 1) + getYOffset();
121}
122
123
124void MainWindow::grabMouse() {

Callers 3

doMotionFunction · 0.80
updateRoamingCameraFunction · 0.80
doTankMotionsFunction · 0.80

Calls 1

getMouseMethod · 0.45

Tested by

no test coverage detected