![]() |
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 | |
| bool | echo = false |
| Keycode | scancode = Keycode::UNKNOWN |
| Keycode | keycode = Keycode::UNKNOWN |
| const char * | keyLabel |
| bool | pressed = false |
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.
| bool InputEventKey::echo = false |
| Keycode InputEventKey::keycode = Keycode::UNKNOWN |
| const char* InputEventKey::keyLabel |
| bool InputEventKey::pressed = false |
| Keycode InputEventKey::scancode = Keycode::UNKNOWN |