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

#include <input.hpp>

Inheritance diagram for InputEventControllerButton:
InputEvent

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 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

ControllerButton button
 
bool pressed
 
float pressure = 1.0f
 
int device
 

Member Function Documentation

◆ getStrength()

float InputEventControllerButton::getStrength ( ) const
inlinevirtual

Reimplemented from InputEvent.

◆ isPressed()

bool InputEventControllerButton::isPressed ( ) const
inlinevirtual

Reimplemented from InputEvent.

◆ isReleased()

bool InputEventControllerButton::isReleased ( ) const
inlinevirtual

Reimplemented from InputEvent.

◆ operator<=()

bool InputEventControllerButton::operator<= ( const InputEvent other) const
virtual

Reimplemented from InputEvent.

◆ operator==()

bool InputEventControllerButton::operator== ( const InputEvent other) const
virtual

Reimplemented from InputEvent.

Member Data Documentation

◆ button

ControllerButton InputEventControllerButton::button

◆ device

int InputEventControllerButton::device

◆ pressed

bool InputEventControllerButton::pressed

◆ pressure

float InputEventControllerButton::pressure = 1.0f

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