mirror of
https://github.com/zeldaret/tp
synced 2026-05-25 15:25:25 -04:00
decomp some small files, do some cleanup (#42)
* remove leftover asm: JSUList.s * d_save_init: decomp * JMath/random: decomp * J3DUDL: fixup label * JAUClusterSound: decomp * c_API_controller_pad: decomp, elaborate globals/types * clang-format * don't add guards to functions.h * semantic merge of m_cpadInfo stuff * fix undef symbols Co-authored-by: Pheenoh <pheenoh@gmail.com>
This commit is contained in:
+5
-4
@@ -1,6 +1,7 @@
|
||||
#include "d/d_lib/d_lib.h"
|
||||
#include "JSystem/JUtility/JUTGamePad/JUTGamePad.h"
|
||||
#include "d/d_event/d_event/d_event.h"
|
||||
#include "global.h"
|
||||
#include "m_Do/m_Do_controller_pad/m_Do_controller_pad.h"
|
||||
#include "os/OS.h"
|
||||
|
||||
@@ -63,19 +64,19 @@ asm void STControl::Yinit(void) {
|
||||
#endif
|
||||
|
||||
double STControl::getValueStick() {
|
||||
return m_cpadInfo.interface.length_from_neutral;
|
||||
return (double)m_cpadInfo[0].mMainStickValue;
|
||||
}
|
||||
|
||||
s16 STControl::getAngleStick() {
|
||||
return m_cpadInfo.interface.controlStick_angle;
|
||||
return m_cpadInfo[0].mMainStickAngle;
|
||||
}
|
||||
|
||||
double CSTControl::getValueStick() {
|
||||
return m_cpadInfo.interface.cStick_length_from_neutral;
|
||||
return (double)m_cpadInfo[0].mCStickValue;
|
||||
}
|
||||
|
||||
s16 CSTControl::getAngleStick() {
|
||||
return m_cpadInfo.interface.cStick_angle;
|
||||
return m_cpadInfo[0].mCStickAngle;
|
||||
}
|
||||
|
||||
asm u32 STControl::checkTrigger() {
|
||||
|
||||
Reference in New Issue
Block a user