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

Function xPadAnalogIsDigital

src/SB/Core/x/xPad.cpp:215–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213}
214
215void xPadAnalogIsDigital(S32 idx, S32 enable)
216{
217 if (idx != 0)
218 return;
219
220 _tagxPad* pad = &mPad[idx];
221
222 if (enable)
223 {
224 pad->flags |= 0x10;
225 }
226 else
227 {
228 pad->flags &= ~0x10;
229 }
230
231 if (pad->al2d_timer >= 0.35f)
232 {
233 pad->al2d_timer = 0.35f;
234 }
235
236 if (pad->ar2d_timer >= 0.35f)
237 {
238 pad->ar2d_timer = 0.35f;
239 }
240
241 if (pad->d_timer >= 0.35f)
242 {
243 pad->d_timer = 0.35f;
244 }
245}
246
247void xPadKill()
248{

Callers 1

xPadUpdateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected