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

#include <input.hpp>

Inheritance diagram for InputEventControllerMotion:
InputEvent

Public Member Functions

bool operator== (const InputEvent &other) const
 
bool operator<= (const InputEvent &other) 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
 
virtual bool isPressed () const
 
virtual bool isReleased () const
 

Public Attributes

int device
 
float motion
 
ControllerAxis axis
 

Member Function Documentation

◆ getStrength()

float InputEventControllerMotion::getStrength ( ) const
inlinevirtual

Reimplemented from InputEvent.

◆ operator<=()

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

Reimplemented from InputEvent.

◆ operator==()

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

Reimplemented from InputEvent.

Member Data Documentation

◆ axis

ControllerAxis InputEventControllerMotion::axis

◆ device

int InputEventControllerMotion::device

◆ motion

float InputEventControllerMotion::motion

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