Split and decompile parts of JUTGamePad (#33)

* JUTGamePad.o: elaborate classes, split

* JUTGamePad::CButton: decompile functions:
- clear()
- clear(JUTGamePad*)
- setRepeat()

* elaborate PAD* types in new header

* decompile getNumBit()

* elaborate JUTGamePad fields

* move retyped externs from variables.h to JUTGamePad.h

* elaborate JUTGamePadLongPress

* JUTGamePad: decompile functions

- initList()
- init()
- clear()
- assign()
- checkResetCallback()
- checkResetSwitch()
- clearForReset()
- recalibrate()

JUTGamePad: decompile

* JUTGamePad::CStick::clear(): decompile

* JUTGamePad::CRumble: decompile functions

- startMotor()
- stopMotor()
- triggerPatternedRumble()
- startPatternedRumble()
- stopPatternedRumbleAtThePeriod()
- setEnabled()

* JUTGamePadLongPress::checkCallback(): decompile

* nonmatching: JUTGamePad::CRumble::update() and JUTGamePad::getGamePad

* JSUList<T>: allow access to JSUPtrList functions

* functions.h: clear out some func decls that are no longer used

* add notes in JUTGamePad.cpp

* clang-format + add back extern funcs

* fix some more extern labels

Co-authored-by: Pheenoh <pheenoh@gmail.com>
This commit is contained in:
Erin Moon
2020-12-29 20:22:18 -05:00
committed by GitHub
co-authored by Pheenoh
parent 2dddd746a6
commit 992cf48c7f
26 changed files with 1644 additions and 1555 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ lbl_80271D8C:
/* 80271DAC 0026ECEC 7F E4 FB 78 */ mr r4, r31
/* 80271DB0 0026ECF0 48 06 CD A9 */ bl JUTGraphFifo
lbl_80271DB4:
/* 80271DB4 0026ECF4 48 06 EA E5 */ bl JUTGamePad_NS_init
/* 80271DB4 0026ECF4 48 06 EA E5 */ bl init__10JUTGamePadFv
/* 80271DB8 0026ECF8 48 07 24 89 */ bl JUTDirectPrint_NS_start
/* 80271DBC 0026ECFC 7C 7E 1B 78 */ mr r30, r3
/* 80271DC0 0026ED00 48 07 2B 9D */ bl JUTAssertion_NS_create