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

#include <input.hpp>

Inheritance diagram for InputEventAction:
InputEvent

Public Member Functions

bool isPressed () const
 
bool isReleased () const
 
float getStrength () 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
 

Public Attributes

std::string action = ""
 
int eventIndex = -1
 
bool pressed = false
 
float strength = 1.0
 

Member Function Documentation

◆ getStrength()

float InputEventAction::getStrength ( ) const
inlinevirtual

Reimplemented from InputEvent.

◆ isPressed()

bool InputEventAction::isPressed ( ) const
inlinevirtual

Reimplemented from InputEvent.

◆ isReleased()

bool InputEventAction::isReleased ( ) const
inlinevirtual

Reimplemented from InputEvent.

Member Data Documentation

◆ action

std::string InputEventAction::action = ""

◆ eventIndex

int InputEventAction::eventIndex = -1

◆ pressed

bool InputEventAction::pressed = false

◆ strength

float InputEventAction::strength = 1.0

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