2022-01-18 22:47:49 +01:00
|
|
|
#ifndef MWINPUT_GYROMANAGER
|
|
|
|
#define MWINPUT_GYROMANAGER
|
|
|
|
|
2023-07-22 00:52:37 +02:00
|
|
|
#include <array>
|
2022-01-18 22:47:49 +01:00
|
|
|
|
|
|
|
namespace MWInput
|
|
|
|
{
|
|
|
|
class GyroManager
|
|
|
|
{
|
2022-09-22 21:26:05 +03:00
|
|
|
public:
|
|
|
|
void update(float dt, std::array<float, 3> values) const;
|
2022-01-18 22:47:49 +01:00
|
|
|
|
2022-09-22 21:26:05 +03:00
|
|
|
void setGuiCursorEnabled(bool enabled) { mGuiCursorEnabled = enabled; }
|
2022-01-18 22:47:49 +01:00
|
|
|
|
2022-09-22 21:26:05 +03:00
|
|
|
private:
|
2023-07-22 00:52:37 +02:00
|
|
|
bool mGuiCursorEnabled = true;
|
2022-01-18 22:47:49 +01:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // !MWINPUT_GYROMANAGER
|