34 auto update(
float dt,
float stickState) -> void;
40 auto setEvents(std::pair<std::string,std::string> events) -> void;
47 auto getEvent()
const -> std::string;
std::string minEvent
event for if the stick is pushed to the negative threshold
Definition ControllerStick.h:65
auto setEvents(std::pair< std::string, std::string > events) -> void
Definition ControllerStick.cpp:69
static constexpr auto initialDelay
Definition ControllerStick.h:70
float pressThreshold
Definition ControllerStick.h:60
static constexpr auto fastDelay
Definition ControllerStick.h:71
std::string maxEvent
event for if the stick is pushed to the positive threshold
Definition ControllerStick.h:67
bool currentlyPressed
Bool representing whether the stick should be considered pressed or not.
Definition ControllerStick.h:52
auto reset() -> void
Definition ControllerStick.cpp:56
auto getEvent() const -> std::string
Gets the output event corresponding to this stick.
Definition ControllerStick.cpp:75
bool isFast
Definition ControllerStick.h:57
float currentDelay
Definition ControllerStick.h:55
auto update(float dt, float stickState) -> void
Definition ControllerStick.cpp:27
auto isPressed() const -> bool
Definition ControllerStick.cpp:64
ControllerStick()
Definition ControllerStick.cpp:22
float lastFrameState
Definition ControllerStick.h:54