MCPcopy Create free account
hub / github.com/doldecomp/mkdd / line

Method line

src/Osako/PadRecorder.cpp:100–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100void PadRecorder::line(u8 no, KartPadData *padData)
101{
102 if (no >= NUM_PLAYERPADS)
103 return;
104
105 if (mRecord[no] == nullptr)
106 return;
107
108 switch (mState)
109 {
110 case State_PlayBack:
111 gpaKartPad[no]->mButtons = mButton[no];
112 mRecord[no]->getPadData(mFrame, padData);
113 break;
114 case State_Recording:
115 gpaKartPad[no]->mButtons = mButton[no];
116 mPadData[no] = *padData;
117 break;
118 }
119}
120
121void PadRecorder::playGhost()
122{

Callers 1

processKartPadFunction · 0.45

Calls 1

getPadDataMethod · 0.80

Tested by

no test coverage detected