A reimplementation of Mario Kart Wii's physics engine in C++
Loading...
Searching...
No Matches
KPadController.hh File Reference

Go to the source code of this file.

Classes

struct  RaceInputState
 Represents a set of controller inputs. More...
struct  KPadGhostButtonsStream
 Represents a stream of button inputs from a ghost file. More...
struct  KPadGhostFaceButtonsStream
 A specialized stream for button presses (not tricks). More...
struct  KPadGhostDirectionButtonsStream
 A specialized stream for the analog stick. Direction tuples take the following form: More...
struct  KPadGhostTrickButtonsStream
 A specialized stream for D-Pad inputs for tricking and wheeling. Trick tuples take the following form: More...
class  KPadController
 An abstraction for a controller object. It is associated with an input state. More...
class  KPadGhostController
 The abstraction of a controller object but for ghost playback. More...
class  KPadHostController
 The abstraction of a controller object but for external usage. More...
class  KPad
class  KPadPlayer
 A specialized KPad for player input, as opposed to CPU players for example. More...

Namespaces

namespace  Kinoko
namespace  Kinoko::System
 High-level handling for generic system operations, such as input reading, race configuration, and resource management.

Enumerations

enum class  ControlSource {
  Unknown = -1 ,
  Core = 0 ,
  Freestyle = 1 ,
  Classic = 2 ,
  Gamecube = 3 ,
  Ghost = 4 ,
  AI = 5 ,
  Host = 6
}
enum class  Trick {
  None = 0 ,
  Up = 1 ,
  Down = 2 ,
  Left = 3 ,
  Right = 4
}

Functions

static constexpr f32 RawStickToState (u8 rawStick)
 Converts a raw stick input into an input usable by the state.