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

Method isButtonPressed

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

Source from the content-addressed store, hash-verified

6MouseState::MouseState() : _x(0), _y(0), _visible(true) {}
7
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;

Callers 1

handleMouseMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected