| 1 | // Copyright 2019 Dolphin Emulator Project |
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include <optional> |
| 7 | #include <string> |
| 8 | |
| 9 | #include "Common/Matrix.h" |
| 10 | #include "InputCommon/ControllerEmu/ControlGroup/ControlGroup.h" |
| 11 | |
| 12 | namespace ControllerEmu |
| 13 | { |
| 14 | class IMUAccelerometer : public ControlGroup |
| 15 | { |
| 16 | public: |
| 17 | using StateData = Common::Vec3; |
| 18 | |
| 19 | IMUAccelerometer(std::string name, std::string ui_name); |
| 20 | |
| 21 | std::optional<StateData> GetState() const; |
| 22 | |
| 23 | bool AreInputsBound() const; |
| 24 | }; |
| 25 | } // namespace ControllerEmu |