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

Method getAbsoluteXMouse

src/Engine/Action.cpp:130–135  ·  view source on GitHub ↗

* Returns the absolute X position of the * mouse cursor relative to the game window, * corrected for screen scaling. * @return Mouse's absolute X position. */

Source from the content-addressed store, hash-verified

128 * @return Mouse's absolute X position.
129 */
130double Action::getAbsoluteXMouse() const
131{
132 if (_mouseX == -1)
133 return -1;
134 return _mouseX / _scaleX;
135}
136
137/**
138 * Returns the absolute Y position of the

Callers 15

handleMethod · 0.80
mouseOverMethod · 0.80
mouseOverMethod · 0.80
mouseClickMethod · 0.80
lstSoldiersClickMethod · 0.80
lstSoldiersMousePressMethod · 0.80
lstItemsMousePressMethod · 0.80
lstItemsMousePressMethod · 0.80
lstItemsMousePressMethod · 0.80
lstItemsMousePressMethod · 0.80
globeHoverMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected