diff options
| author | jdflyer <yeacub@gmail.com> | 2021-01-02 00:02:19 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-02 02:02:19 -0500 |
| commit | e42d44e6cb850caf040729da56f37d0739ed7063 (patch) | |
| tree | e13bc37062fdc95f1d8a2dee91071175b2eff531 /src/d/d_lib.cpp | |
| parent | 69faf591d49a2b8998f8ebbf608ff383e4e8ecd4 (diff) | |
M_do_controller_pad split and partially matched (#36)
* m_Do_controller_pad split
* Attempt to match and match mDoCPd_c::recalibrate
* Fix Merge Errors
* clang-format
Co-authored-by: Pheenoh <pheenoh@gmail.com>
Diffstat (limited to 'src/d/d_lib.cpp')
| -rw-r--r-- | src/d/d_lib.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/d/d_lib.cpp b/src/d/d_lib.cpp index 3cb22138e8..a341f4a556 100644 --- a/src/d/d_lib.cpp +++ b/src/d/d_lib.cpp @@ -1,5 +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 "m_Do/m_Do_controller_pad/m_Do_controller_pad.h" #include "os/OS.h" STControl::STControl(s16 param_1, s16 param_2, s16 param_3, s16 param_4, f32 param_5, f32 param_6, @@ -61,19 +63,19 @@ asm void STControl::Yinit(void) { #endif double STControl::getValueStick() { - return lbl_803DD2E8.stickValue; + return m_cpadInfo.interface.length_from_neutral; } s16 STControl::getAngleStick() { - return lbl_803DD2E8.stickAngle; + return m_cpadInfo.interface.controlStick_angle; } double CSTControl::getValueStick() { - return lbl_803DD2E8.CstickValue; + return m_cpadInfo.interface.cStick_length_from_neutral; } s16 CSTControl::getAngleStick() { - return lbl_803DD2E8.CstickAngle; + return m_cpadInfo.interface.cStick_angle; } asm u32 STControl::checkTrigger() { |
