| 1 | #pragma once |
|---|---|
| 2 | |
| 3 | #include <container/seadBuffer.h> |
| 4 | #include <math/seadVector.h> |
| 5 | |
| 6 | namespace al { |
| 7 | |
| 8 | class SpinInputAnalyzer { |
| 9 | public: |
| 10 | SpinInputAnalyzer(); |
| 11 | void update(const sead::Vector2f& controllerInput); |
| 12 | |
| 13 | private: |
| 14 | sead::Buffer<f32> mChangeHistory; |
| 15 | sead::Buffer<sead::Vector2f> mInputHistory; |
| 16 | s32 mNumUsableEntries = 0; |
| 17 | s32 mCurrentIndex = 0; |
| 18 | s32 mSpinDirection = 0; |
| 19 | s32 mSpinTimer = 0; |
| 20 | }; |
| 21 | |
| 22 | } // namespace al |
| 23 |