mirror of
https://github.com/zeldaret/mm.git
synced 2026-07-09 05:43:18 -04:00
Decompile padmgr.c (#1246)
* Decompile padmgr.c * Format * Enum names * Update namefixer * Suggested changes Co-authored-by: Anghelo Carvajal <angheloalf95@gmail.com> * Suggested changes, improve motor.c Co-authored-by: Derek Hensley <hensley.derek58@gmail.com> * Further suggested changes * Format * Fix `controller.h` comment Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com> --------- Co-authored-by: Anghelo Carvajal <angheloalf95@gmail.com> Co-authored-by: Derek Hensley <hensley.derek58@gmail.com> Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com>
This commit is contained in:
@@ -204,7 +204,7 @@ void Fault_Sleep(u32 duration) {
|
||||
}
|
||||
|
||||
void Fault_PadCallback(Input* input) {
|
||||
Padmgr_GetInput2(input, 0);
|
||||
PadMgr_GetInput2(input, false);
|
||||
}
|
||||
|
||||
void Fault_UpdatePadImpl() {
|
||||
@@ -474,7 +474,7 @@ void Fault_WaitForButtonCombo(void) {
|
||||
do {
|
||||
Fault_Sleep(0x10);
|
||||
Fault_UpdatePadImpl();
|
||||
} while (!CHECK_BTN_ALL(input->press.button, 0x80));
|
||||
} while (!CHECK_BTN_ALL(input->press.button, BTN_RESET));
|
||||
} while (!CHECK_BTN_ALL(input->cur.button, BTN_DLEFT | BTN_L | BTN_R | BTN_CRIGHT));
|
||||
}
|
||||
|
||||
@@ -763,7 +763,7 @@ void Fault_SetOptionsFromController3(void) {
|
||||
u32 graphRA;
|
||||
u32 graphSP;
|
||||
|
||||
if (CHECK_BTN_ALL(input3->press.button, 0x80)) {
|
||||
if (CHECK_BTN_ALL(input3->press.button, BTN_RESET)) {
|
||||
faultCustomOptions = !faultCustomOptions;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user