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

Method btnLockMouseClick

src/Menu/OptionsVideoState.cpp:525–529  ·  view source on GitHub ↗

* Changes the Lock Mouse option. * @param action Pointer to an action. */

Source from the content-addressed store, hash-verified

523 * @param action Pointer to an action.
524 */
525void OptionsVideoState::btnLockMouseClick(Action *)
526{
527 Options::captureMouse = (SDL_GrabMode)_btnLockMouse->getPressed();
528 SDL_WM_GrabInput(Options::captureMouse);
529}
530
531/**
532 * Changes the geoscape scale.

Callers

nothing calls this directly

Calls 1

getPressedMethod · 0.80

Tested by

no test coverage detected