MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / stopScrolling

Method stopScrolling

src/Geoscape/Globe.cpp:2142–2146  ·  view source on GitHub ↗

* Move the mouse back to where it started after we finish drag scrolling. * @param action Pointer to an action. */

Source from the content-addressed store, hash-verified

2140 * @param action Pointer to an action.
2141 */
2142void Globe::stopScrolling(Action *action)
2143{
2144 SDL_WarpMouse(_xBeforeMouseScrolling, _yBeforeMouseScrolling);
2145 action->setMouseAction(_xBeforeMouseScrolling, _yBeforeMouseScrolling, getX(), getY());
2146}
2147}

Callers

nothing calls this directly

Calls 1

setMouseActionMethod · 0.80

Tested by

no test coverage detected