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

Method warpMouse

src/bzflag/MainWindow.cpp:91–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89
90
91void MainWindow::warpMouse() {
92 // move mouse to center of view window (zero motion box)
93 window->warpMouse((width >> 1) + xOrigin, (viewHeight >> 1) + getYOffset());
94}
95
96
97void MainWindow::warpMouse(int mx, int my) {

Callers 8

setVideoFormatFunction · 0.45
mouseClampFunction · 0.45
doEventFunction · 0.45
handleAliveMessageFunction · 0.45
updateRoamingCameraFunction · 0.45
startPlayingFunction · 0.45
warpMouseCenterXMethod · 0.45
warpMouseCenterYMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected