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

Method btnTimerClick

src/Geoscape/GeoscapeState.cpp:2228–2235  ·  view source on GitHub ↗

* Handler for clicking on a timer button. * @param action pointer to the mouse action. */

Source from the content-addressed store, hash-verified

2226 * @param action pointer to the mouse action.
2227 */
2228void GeoscapeState::btnTimerClick(Action *action)
2229{
2230 SDL_Event ev;
2231 ev.type = SDL_MOUSEBUTTONDOWN;
2232 ev.button.button = SDL_BUTTON_LEFT;
2233 Action a = Action(&ev, 0.0, 0.0, 0, 0);
2234 action->getSender()->mousePress(&a, this);
2235}
2236
2237/**
2238 * Updates the scale.

Callers

nothing calls this directly

Calls 3

getSenderMethod · 0.80
ActionClass · 0.50
mousePressMethod · 0.45

Tested by

no test coverage detected