Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
JoystickAxisCmb Struct Reference

#include <joystick_controller.h>

+ Inheritance diagram for JoystickAxisCmb:
+ Collaboration diagram for JoystickAxisCmb:

Public Member Functions

 JoystickAxisCmb ()=default
 
 JoystickAxisCmb (GameKeyType key, u16 axis_to_compare, int direction, s16 thresh)
 
virtual ~JoystickAxisCmb ()=default
 
bool isTriggered (const irr::SEvent::SJoystickEvent &ev) const override
 

Public Attributes

u16 axis_to_compare
 
int direction
 
s16 thresh
 
- Public Attributes inherited from JoystickCombination
GameKeyType key
 

Constructor & Destructor Documentation

◆ JoystickAxisCmb() [1/2]

JoystickAxisCmb::JoystickAxisCmb ( )
default

◆ JoystickAxisCmb() [2/2]

JoystickAxisCmb::JoystickAxisCmb ( GameKeyType key,
u16 axis_to_compare,
int direction,
s16 thresh )
inline

◆ ~JoystickAxisCmb()

virtual JoystickAxisCmb::~JoystickAxisCmb ( )
virtualdefault

Member Function Documentation

◆ isTriggered()

bool JoystickAxisCmb::isTriggered ( const irr::SEvent::SJoystickEvent & ev) const
overridevirtual

Implements JoystickCombination.

References axis_to_compare, direction, and thresh.

Member Data Documentation

◆ axis_to_compare

u16 JoystickAxisCmb::axis_to_compare

Referenced by isTriggered().

◆ direction

int JoystickAxisCmb::direction

Referenced by isTriggered().

◆ thresh

s16 JoystickAxisCmb::thresh

Referenced by isTriggered().


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