|
coastline 0.0.4
|
The input of one player. More...
#include <playerinput.h>

The input of one player.
| u32 PlayerInputState::buttons |
The buttons pressed and the race actions, as the INPUT_ bits.
| u32 PlayerInputState::heldButtons |
The buttons TransferFlags() moved out of the input until they are released.
| s32 PlayerInputState::repeatUp |
The milliseconds before the stick presses up again.
| s32 PlayerInputState::repeatDown |
The milliseconds before the stick presses down again.
| s32 PlayerInputState::repeatLeft |
The milliseconds before the stick presses left again.
| s32 PlayerInputState::repeatRight |
The milliseconds before the stick presses right again.
| f32 PlayerInputState::stickX |
The horizontal position of the stick, from -1 to 1.
| f32 PlayerInputState::stickY |
The vertical position of the stick, from -1 to 1.
| f32 PlayerInputState::steering |
The steering, from -1 to 1.
| s8 PlayerInputState::steeringInput |
The steering as the stick, the pad, or the recording gives it.
| u8 PlayerInputState::controllerLayout |
The button layout of the race.
| s32 PlayerInputState::controllerMissing |
Set when the controller of the player does not respond.
| u8* PlayerInputState::recordBuffers[INPUT_RECORDERS] |
The buffers that record two bytes of input each frame, or NULL.
| s32 PlayerInputState::recordPositions[INPUT_RECORDERS] |
The byte offset of the next frame of each recording.
| s32 PlayerInputState::recordLimits[INPUT_RECORDERS] |
The size of each recording buffer, in bytes.
| u8* PlayerInputState::playbackBuffer |
The recording that replaces the input, or NULL.
| s32 PlayerInputState::playbackPosition |
The byte offset of the next frame of the recording played.
| s32 PlayerInputState::playbackLimit |
The size of the recording played, in bytes.
| u16 PlayerInputState::history[INPUT_HISTORY_SIZE] |
The last button changes, the newest at historyIndex.
| s32 PlayerInputState::historyIndex |
The index of the newest button change, moving down as changes come.
| s32 PlayerInputState::playerIndex |
The player of the input, from 0 to MAX_PLAYERS - 1.
| OSContPad* PlayerInputState::pad |
The pad the controller reads fill.