Calamity Engine 1.0.0
A cross-platform 2D game engine written in C++ and SDL3.
Loading...
Searching...
No Matches
InputEventWithModifiers Class Reference

#include <input.hpp>

Inheritance diagram for InputEventWithModifiers:
InputEvent InputEventKey InputEventMouse InputEventMouseButton InputEventMouseMotion

Public Member Functions

std::vector< bool > getModifiersMask () const
 
bool isCommandOrControlPressed () const
 
- Public Member Functions inherited from InputEvent
virtual ~InputEvent ()=default
 
virtual bool operator== (const InputEvent &other) const
 
virtual bool operator<= (const InputEvent &other) const
 
bool isActionPressed (const std::string &action) const
 
bool isActionReleased (const std::string &action) const
 
bool isAction (const std::string &action) const
 
virtual bool isPressed () const
 
virtual bool isReleased () const
 
virtual float getStrength () const
 

Public Attributes

bool altPressed = false
 
bool commandOrControlAutoremap = false
 
bool ctrlPressed = false
 
bool metaPressed = false
 
bool shiftPressed = false
 

Member Function Documentation

◆ getModifiersMask()

std::vector< bool > InputEventWithModifiers::getModifiersMask ( ) const

◆ isCommandOrControlPressed()

bool InputEventWithModifiers::isCommandOrControlPressed ( ) const

Member Data Documentation

◆ altPressed

bool InputEventWithModifiers::altPressed = false

◆ commandOrControlAutoremap

bool InputEventWithModifiers::commandOrControlAutoremap = false

◆ ctrlPressed

bool InputEventWithModifiers::ctrlPressed = false

◆ metaPressed

bool InputEventWithModifiers::metaPressed = false

◆ shiftPressed

bool InputEventWithModifiers::shiftPressed = false

The documentation for this class was generated from the following file: