#include <KPadController.hh>
Represents a set of controller inputs. 
Definition at line 36 of file KPadController.hh.
◆ RaceInputState()
      
        
          | System::RaceInputState::RaceInputState | ( |  | ) |  | 
      
 
 
◆ ~RaceInputState()
  
  | 
        
          | virtual System::RaceInputState::~RaceInputState | ( |  | ) |  |  | inlinevirtual | 
 
 
◆ accelerate()
  
  | 
        
          | bool System::RaceInputState::accelerate | ( |  | ) | const |  | inlinenodiscard | 
 
 
◆ brake()
  
  | 
        
          | bool System::RaceInputState::brake | ( |  | ) | const |  | inlinenodiscard | 
 
 
◆ drift()
  
  | 
        
          | bool System::RaceInputState::drift | ( |  | ) | const |  | inlinenodiscard | 
 
 
◆ isButtonsValid()
  
  | 
        
          | bool System::RaceInputState::isButtonsValid | ( |  | ) | const |  | inlinenodiscard | 
 
Checks if there are any invalid buttons. 
Validatation with the previous input state doesn't happen because it doesn't exist. Therefore, we cannot check here if e.g. the drift button is pressed when it shouldn't be. 
- Returns
- If no invalid buttons are present. 
Definition at line 48 of file KPadController.hh.
 
 
◆ isStickValid()
  
  | 
        
          | bool System::RaceInputState::isStickValid | ( | f32 | stick | ) | const |  | nodiscard | 
 
Checks if the stick values are within the domain of the physics engine. 
The set of valid stick values is \(\{\frac{x-7}{7}|0\leq x\leq 14,\in\mathbb{Z}\}\). It's possible for the stick input to be 8/7 with x = 15, but only with ghost controllers. 
- Returns
- If the stick values are valid. 
Definition at line 143 of file KPadController.cc.
 
 
◆ isTrickValid()
  
  | 
        
          | bool System::RaceInputState::isTrickValid | ( |  | ) | const |  | inlinenodiscard | 
 
Checks if the trick input is valid. 
- Returns
- If the trick input is valid. 
Definition at line 56 of file KPadController.hh.
 
 
◆ isValid()
  
  | 
        
          | bool System::RaceInputState::isValid | ( |  | ) | const |  | nodiscard | 
 
Checks if the input state is valid. 
- Returns
- If the input state is valid. 
Definition at line 123 of file KPadController.cc.
 
 
◆ item()
  
  | 
        
          | bool System::RaceInputState::item | ( |  | ) | const |  | inlinenodiscard | 
 
 
◆ reset()
  
  | 
        
          | void System::RaceInputState::reset | ( |  | ) |  |  | 0x8051E85C | 
 
 
◆ trickDown()
  
  | 
        
          | bool System::RaceInputState::trickDown | ( |  | ) | const |  | inlinenodiscard | 
 
 
◆ trickUp()
  
  | 
        
          | bool System::RaceInputState::trickUp | ( |  | ) | const |  | inlinenodiscard | 
 
 
◆ buttons
      
        
          | u16 System::RaceInputState::buttons | 
      
 
 
◆ buttonsRaw
      
        
          | u16 System::RaceInputState::buttonsRaw | 
      
 
 
◆ stick
◆ stickXRaw
      
        
          | u8 System::RaceInputState::stickXRaw | 
      
 
 
◆ stickYRaw
      
        
          | u8 System::RaceInputState::stickYRaw | 
      
 
 
◆ trick
      
        
          | Trick System::RaceInputState::trick | 
      
 
 
◆ trickRaw
      
        
          | u8 System::RaceInputState::trickRaw |