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

Method mouseOver

src/Battlescape/Map.cpp:1163–1170  ·  view source on GitHub ↗

* Handles mouse over events on the map. * @param action Pointer to an action. * @param state State that the action handlers belong to. */

Source from the content-addressed store, hash-verified

1161 * @param state State that the action handlers belong to.
1162 */
1163void Map::mouseOver(Action *action, State *state)
1164{
1165 InteractiveSurface::mouseOver(action, state);
1166 _camera->mouseOver(action, state);
1167 _mouseX = (int)action->getAbsoluteXMouse();
1168 _mouseY = (int)action->getAbsoluteYMouse();
1169 setSelectorPosition(_mouseX, _mouseY);
1170}
1171
1172
1173/**

Callers

nothing calls this directly

Calls 2

getAbsoluteXMouseMethod · 0.80
getAbsoluteYMouseMethod · 0.80

Tested by

no test coverage detected