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

Method setMouseAction

src/Engine/Action.cpp:69–75  ·  view source on GitHub ↗

* Sets this action as a mouse action with * the respective mouse properties. * @param mouseX Mouse's X position. * @param mouseY Mouse's Y position. * @param surfaceX Surface's X position. * @param surfaceY Surface's Y position. */

Source from the content-addressed store, hash-verified

67 * @param surfaceY Surface's Y position.
68 */
69void Action::setMouseAction(int mouseX, int mouseY, int surfaceX, int surfaceY)
70{
71 _mouseX = mouseX - _leftBlackBand;
72 _mouseY = mouseY - _topBlackBand;
73 _surfaceX = surfaceX;
74 _surfaceY = surfaceY;
75}
76
77bool Action::isMouseAction() const
78{

Callers 5

handleMethod · 0.80
stopScrollingMethod · 0.80
stopScrollingMethod · 0.80
mouseOverMethod · 0.80
stopScrollingMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected