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

Method handle

src/Menu/OptionsVideoState.cpp:569–576  ·  view source on GitHub ↗

* Takes care of any events from the core game engine. * @param action Pointer to an action. */

Source from the content-addressed store, hash-verified

567 * @param action Pointer to an action.
568 */
569void OptionsVideoState::handle(Action *action)
570{
571 State::handle(action);
572 if (action->getDetails()->key.keysym.sym == SDLK_g && (SDL_GetModState() & KMOD_CTRL) != 0)
573 {
574 _btnLockMouse->setPressed(Options::captureMouse == SDL_GRAB_ON);
575 }
576}
577}

Callers

nothing calls this directly

Calls 2

getDetailsMethod · 0.80
setPressedMethod · 0.80

Tested by

no test coverage detected