| 15 | [[nodiscard]] bool MouseState::isVisible() const { return _visible; } |
| 16 | |
| 17 | void MouseState::setButtonState(Enums::MouseButton button, const bool pressed) { |
| 18 | _button = static_cast<Enums::MouseButton>( |
| 19 | (pressed ? static_cast<uint8_t>(_button) | static_cast<uint8_t>(button) : static_cast<uint8_t>(_button) & ~static_cast<uint8_t>(button))); |
| 20 | } |
| 21 | |
| 22 | void MouseState::setPosition(const int x, const int y) { |
| 23 | _x = x; |
no outgoing calls
no test coverage detected