diff options
| author | CovenEsme <84377742+CovenEsme@users.noreply.github.com> | 2025-03-14 13:34:18 +0000 |
|---|---|---|
| committer | CovenEsme <84377742+CovenEsme@users.noreply.github.com> | 2025-03-14 13:34:18 +0000 |
| commit | 2b4a50803a3475e24c279bb8528e398a1f9ef1dd (patch) | |
| tree | 6b5f5963874d2ad544c293a7f20648b73f8cff97 /src/egg/core/eggController.cpp | |
| parent | 6b88fbfb8e98827e1cc83f0f18fa5a39c3d09bb4 (diff) | |
Add float f suffix
Diffstat (limited to 'src/egg/core/eggController.cpp')
| -rw-r--r-- | src/egg/core/eggController.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/egg/core/eggController.cpp b/src/egg/core/eggController.cpp index b73a02a4..bcc0c551 100644 --- a/src/egg/core/eggController.cpp +++ b/src/egg/core/eggController.cpp @@ -8,7 +8,6 @@ #include "rvl/VI.h" // IWYU pragma: export #include "string.h" - EGG::NullController null_controller; namespace EGG { @@ -63,8 +62,8 @@ CoreController::CoreController() : mDpdPos(), mAccel(), mAccelFlags(), mFlag(0) void CoreController::sceneReset() { mAccel.set(0.0, 0.0, 0.0); - mDpdPos.x = 0.0; - mDpdPos.y = 0.0; + mDpdPos.x = 0.0f; + mDpdPos.y = 0.0f; mIdleTime = 0; mPostureMatrixPrev.makeIdentity(); mPostureMatrix.makeIdentity(); @@ -286,7 +285,7 @@ void CoreController::endFrame() { /* 0x80499AC0 */ f32 CoreController::getFreeStickX() const { if (mCoreStatus->getDevType() == WPAD_DEV_CORE) { - return 0.0; + return 0.0f; } return mCoreStatus[0].getFSStickX(); } @@ -294,7 +293,7 @@ f32 CoreController::getFreeStickX() const { /* 0x80499AE0 */ f32 CoreController::getFreeStickY() const { if (mCoreStatus->getDevType() == WPAD_DEV_CORE) { - return 0.0; + return 0.0f; } return mCoreStatus[0].getFSStickY(); } @@ -429,8 +428,8 @@ void ControllerRumbleUnit::init() { mPattern = nullptr; mPatternPos = nullptr; mTimer = 0; - mIntensity = 0.0; - mRampUp = 0.0; + mIntensity = 0.0f; + mRampUp = 0.0f; mFlag.makeAllZero(); } |
