#include <KPadController.hh>
The abstraction of a controller object but for external usage.
The input state is managed externally by programs interfacing with Kinoko.
Definition at line 241 of file KPadController.hh.
Public Member Functions | |
| ControlSource | controlSource () const override |
| void | reset (bool driftIsAuto) override |
| bool | setInputs (const RaceInputState &state) |
| Sets the inputs of the controller. | |
| bool | setInputs (u16 buttons, const EGG::Vector2f &stick, Trick trick) |
| Sets the inputs of the controller. | |
| bool | setInputs (u16 buttons, f32 stickX, f32 stickY, Trick trick) |
| Sets the inputs of the controller. | |
| bool | setInputsRawStick (u16 buttons, u8 stickXRaw, u8 stickYRaw, Trick trick) |
| Sets the inputs of the controller. | |
| bool | setInputsRawStickZeroCenter (u16 buttons, s8 stickXRaw, s8 stickYRaw, Trick trick) |
| Sets the inputs of the controller. | |
Public Member Functions inherited from System::KPadController | |
| virtual void | calcImpl () |
| void | calc () |
| const RaceInputState & | raceInputState () const |
| void | setDriftIsAuto (bool driftIsAuto) |
| bool | driftIsAuto () const |
Additional Inherited Members | |
Protected Attributes inherited from System::KPadController | |
| RaceInputState | m_raceInputState |
| The current inputs from this controller. | |
| bool | m_connected |
| Whether the controller is active. | |
| bool | m_driftIsAuto |
| True for auto transmission, false for manual. | |
|
inlinenodiscardoverridevirtual |
Reimplemented from System::KPadController.
Definition at line 246 of file KPadController.hh.
|
overridevirtual |
Reimplemented from System::KPadController.
Definition at line 218 of file KPadController.cc.
|
inline |
Sets the inputs of the controller.
| state | The specified inputs packaged in the state. Only buttons, stick, and trick matter. |
Definition at line 256 of file KPadController.hh.
|
inline |
Sets the inputs of the controller.
| buttons | The button inputs. |
| stick | The stick inputs, as a 2D vector. |
| trick | The trick input. |
Definition at line 265 of file KPadController.hh.
|
inline |
Sets the inputs of the controller.
| buttons | The button inputs. |
| stickX | The stick input on the X axis. |
| stickY | The stick input on the Y axis. |
| trick | The trick input. |
Definition at line 279 of file KPadController.hh.
|
inline |
Sets the inputs of the controller.
A different name is specified to avoid any ambiguity with the parameters.
| buttons | The button inputs. |
| stickXRaw | The 7-centered raw stick input on the X axis. |
| stickYRaw | The 7-centered raw stick input on the Y axis. |
| trick | The trick input. |
Definition at line 295 of file KPadController.hh.
|
inline |
Sets the inputs of the controller.
A different name is specified to avoid any ambiguity with the parameters.
| buttons | The button inputs. |
| stickXRaw | The 0-centered raw stick input on the X axis. |
| stickYRaw | The 0-centered raw stick input on the Y axis. |
| trick | The trick input. |
Definition at line 306 of file KPadController.hh.