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

Method getRelativeYMouse

src/Engine/Action.cpp:169–174  ·  view source on GitHub ↗

* Returns the relative X position of the * mouse cursor relative to the surface that * triggered the action, corrected for screen scaling. * @return Mouse's relative X position. */

Source from the content-addressed store, hash-verified

167 * @return Mouse's relative X position.
168 */
169double Action::getRelativeYMouse() const
170{
171 if (_mouseY == -1)
172 return -1;
173 return _mouseY - _surfaceY * _scaleY;
174}
175
176/**
177 * Returns the interactive surface that triggered

Callers 4

mouseClickMethod · 0.80
mouseClickMethod · 0.80
mouseOverMethod · 0.80
mouseOverMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected