![]() |
Calamity Engine 1.0.0
A cross-platform 2D game engine written in C++ and SDL3.
|
#include <input.hpp>
Public Member Functions | |
| bool | operator== (const InputEvent &other) const |
| bool | operator<= (const InputEvent &other) const |
| bool | isPressed () const |
| bool | isReleased () const |
| float | getStrength () const |
Public Member Functions inherited from InputEventWithModifiers | |
| std::vector< bool > | getModifiersMask () const |
| bool | isCommandOrControlPressed () const |
Public Member Functions inherited from InputEvent | |
| virtual | ~InputEvent ()=default |
| bool | isActionPressed (const std::string &action) const |
| bool | isActionReleased (const std::string &action) const |
| bool | isAction (const std::string &action) const |
Public Attributes | |
| MouseButton | button = MouseButton::NONE |
| bool | doubleClick = false |
| Vector2 | factor = {0, 0} |
| bool | pressed = false |
Public Attributes inherited from InputEventMouse | |
| Vector2 | position = {0, 0} |
| Vector2 | relative = {0, 0} |
Public Attributes inherited from InputEventWithModifiers | |
| bool | altPressed = false |
| bool | commandOrControlAutoremap = false |
| bool | ctrlPressed = false |
| bool | metaPressed = false |
| bool | shiftPressed = false |
|
inlinevirtual |
Reimplemented from InputEvent.
|
inlinevirtual |
Reimplemented from InputEvent.
|
inlinevirtual |
Reimplemented from InputEvent.
|
virtual |
Reimplemented from InputEvent.
|
virtual |
Reimplemented from InputEvent.
| MouseButton InputEventMouseButton::button = MouseButton::NONE |
| bool InputEventMouseButton::doubleClick = false |
| Vector2 InputEventMouseButton::factor = {0, 0} |
| bool InputEventMouseButton::pressed = false |