MCPcopy Create free account
hub / github.com/AbyssEngine/AbyssEngineOld / getPosition

Method getPosition

src/Abyss/Common/MouseState.cpp:10–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8[[nodiscard]] bool MouseState::isButtonPressed(Enums::MouseButton button) const { return (static_cast<uint8_t>(_button) & static_cast<uint8_t>(button)) != 0; }
9
10void MouseState::getPosition(int &x, int &y) const {
11 x = _x;
12 y = _y;
13}
14
15[[nodiscard]] bool MouseState::isVisible() const { return _visible; }
16

Callers 3

processEventMethod · 0.80
renderMethod · 0.80
handleMouseMethod · 0.80

Calls

no outgoing calls

Tested by 1

processEventMethod · 0.64