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

Method warpMouseCenterY

src/bzflag/MainWindow.cpp:109–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107
108
109void MainWindow::warpMouseCenterY() {
110 int mx, my;
111 getMousePosition(mx, my);
112 const int y = (viewHeight >> 1) + getYOffset();
113 window->warpMouse(mx + (width >> 1) + xOrigin, y);
114}
115
116
117void MainWindow::getMousePosition(int& mx, int& my) const {

Callers 1

updateRoamingCameraFunction · 0.80

Calls 1

warpMouseMethod · 0.45

Tested by

no test coverage detected