#ifndef MWINPUT_GYROMANAGER #define MWINPUT_GYROMANAGER #include #include "gyroaxis.hpp" namespace MWInput { class GyroManager { public: GyroManager(); bool isEnabled() const { return mEnabled; } void update(float dt, std::array values) const; void processChangedSettings(const Settings::CategorySettingVector& changed); void setGuiCursorEnabled(bool enabled) { mGuiCursorEnabled = enabled; } private: bool mEnabled; bool mGuiCursorEnabled; float mSensitivityH; float mSensitivityV; float mInputThreshold; GyroscopeAxis mAxisH; GyroscopeAxis mAxisV; float getAxisValue(GyroscopeAxis axis, std::array values) const; }; } #endif // !MWINPUT_GYROMANAGER