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

Method getAbsoluteYMouse

src/Engine/Action.cpp:143–148  ·  view source on GitHub ↗

* Returns the absolute Y 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

141 * @return Mouse's absolute X position.
142 */
143double Action::getAbsoluteYMouse() const
144{
145 if (_mouseY == -1)
146 return -1;
147 return _mouseY / _scaleY;
148}
149
150/**
151 * Returns the relative X position of the

Callers 15

handleMethod · 0.80
mouseOverMethod · 0.80
mouseOverMethod · 0.80
mouseClickMethod · 0.80
globeHoverMethod · 0.80
globeClickMethod · 0.80
globeClickMethod · 0.80
mouseOverMethod · 0.80
mousePressMethod · 0.80
mouseReleaseMethod · 0.80
mouseClickMethod · 0.80
globeClickMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected