MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / PADOriginUpdateCallback

Function PADOriginUpdateCallback

src/dolphin/src/pad/Pad.c:165–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165static void PADOriginUpdateCallback(s32 chan, u32 error, OSContext* context)
166{
167 if (!(EnabledBits & (PAD_CHAN0_BIT >> chan)))
168 {
169 return;
170 }
171
172 if (!(error &
173 (SI_ERROR_UNDER_RUN | SI_ERROR_OVER_RUN | SI_ERROR_NO_RESPONSE | SI_ERROR_COLLISION)))
174 {
175 UpdateOrigin(chan);
176 }
177
178 if (error & SI_ERROR_NO_RESPONSE)
179 {
180 PADDisable(chan);
181 }
182}
183
184static void PADProbeCallback(s32 chan, u32 error, OSContext* context)
185{

Callers

nothing calls this directly

Calls 1

UpdateOriginFunction · 0.85

Tested by

no test coverage detected