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

#include <joystick_controller.h>

+ Inheritance diagram for JoystickButtonCmb:
+ Collaboration diagram for JoystickButtonCmb:

Public Member Functions

 JoystickButtonCmb ()=default
 
 JoystickButtonCmb (GameKeyType key, u32 filter_mask, u32 compare_mask)
 
virtual ~JoystickButtonCmb ()=default
 
virtual bool isTriggered (const irr::SEvent::SJoystickEvent &ev) const
 

Public Attributes

u32 filter_mask
 
u32 compare_mask
 
- Public Attributes inherited from JoystickCombination
GameKeyType key
 

Constructor & Destructor Documentation

◆ JoystickButtonCmb() [1/2]

JoystickButtonCmb::JoystickButtonCmb ( )
default

◆ JoystickButtonCmb() [2/2]

JoystickButtonCmb::JoystickButtonCmb ( GameKeyType key,
u32 filter_mask,
u32 compare_mask )
inline

◆ ~JoystickButtonCmb()

virtual JoystickButtonCmb::~JoystickButtonCmb ( )
virtualdefault

Member Function Documentation

◆ isTriggered()

bool JoystickButtonCmb::isTriggered ( const irr::SEvent::SJoystickEvent & ev) const
virtual

Implements JoystickCombination.

References compare_mask, and filter_mask.

Member Data Documentation

◆ compare_mask

u32 JoystickButtonCmb::compare_mask

Referenced by isTriggered().

◆ filter_mask

u32 JoystickButtonCmb::filter_mask

Referenced by isTriggered().


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