A reimplementation of Mario Kart Wii's physics engine in C++
Loading...
Searching...
No Matches
System::KPadGhostTrickButtonsStream Struct Reference

#include <KPadController.hh>

Description

A specialized stream for D-Pad inputs for tricking and wheeling. Trick tuples take the following form:

Bitmask Description
0x0F The upper four bits of the tuple's duration, forming a 12-bit integer.
0x70 0x00 = No trick, 0x10 = Up/Wheelie, 0x20 = Down, 0x30 = Left, 0x40 = Right

Definition at line 159 of file KPadController.hh.

Inheritance diagram for System::KPadGhostTrickButtonsStream:

Public Member Functions

bool readIsNewSequence () const override
 
u8 readVal () const override
 
- Public Member Functions inherited from System::KPadGhostButtonsStream
virtual u8 readFrame ()
 Reads the data from the corresponding tuple in the buffer.
 

Additional Inherited Members

- Public Attributes inherited from System::KPadGhostButtonsStream
EGG::RamStream buffer
 
u32 currentSequence
 
u16 readSequenceFrames
 
u32 state
 

Member Function Documentation

◆ readIsNewSequence()

bool System::KPadGhostTrickButtonsStream::readIsNewSequence ( ) const
inlinenodiscardoverridevirtual0x805250A8

Reimplemented from System::KPadGhostButtonsStream.

Definition at line 164 of file KPadController.hh.

◆ readVal()

u8 System::KPadGhostTrickButtonsStream::readVal ( ) const
inlinenodiscardoverridevirtual0x8052509C

Reimplemented from System::KPadGhostButtonsStream.

Definition at line 171 of file KPadController.hh.