#include <KPadController.hh>
Represents a set of controller inputs.
Definition at line 36 of file KPadController.hh.
◆ RaceInputState()
| Kinoko::System::RaceInputState::RaceInputState |
( |
| ) |
|
◆ ~RaceInputState()
| virtual Kinoko::System::RaceInputState::~RaceInputState |
( |
| ) |
|
|
inlinevirtual |
◆ accelerate()
| bool Kinoko::System::RaceInputState::accelerate |
( |
| ) |
const |
|
inlinenodiscard |
◆ brake()
| bool Kinoko::System::RaceInputState::brake |
( |
| ) |
const |
|
inlinenodiscard |
◆ drift()
| bool Kinoko::System::RaceInputState::drift |
( |
| ) |
const |
|
inlinenodiscard |
◆ isButtonsValid()
| bool Kinoko::System::RaceInputState::isButtonsValid |
( |
| ) |
const |
|
inlinenodiscard |
Checks if there are any invalid buttons.
Validation 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 Kinoko::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 Kinoko::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 Kinoko::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 Kinoko::System::RaceInputState::item |
( |
| ) |
const |
|
inlinenodiscard |
◆ reset()
| void Kinoko::System::RaceInputState::reset |
( |
| ) |
|
|
0x8051E85C |
◆ trickDown()
| bool Kinoko::System::RaceInputState::trickDown |
( |
| ) |
const |
|
inlinenodiscard |
◆ trickUp()
| bool Kinoko::System::RaceInputState::trickUp |
( |
| ) |
const |
|
inlinenodiscard |
◆ buttons
| u16 Kinoko::System::RaceInputState::buttons |
◆ buttonsRaw
| u16 Kinoko::System::RaceInputState::buttonsRaw |
◆ stick
◆ stickXRaw
| u8 Kinoko::System::RaceInputState::stickXRaw |
◆ stickYRaw
| u8 Kinoko::System::RaceInputState::stickYRaw |
◆ trick
| Trick Kinoko::System::RaceInputState::trick |
◆ trickRaw
| u8 Kinoko::System::RaceInputState::trickRaw |