2019-09-06 15:09:30 +00:00
|
|
|
// Copyright 2019 Dolphin Emulator Project
|
2021-07-05 01:22:19 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2019-09-06 15:09:30 +00:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2019-11-22 20:19:45 +00:00
|
|
|
#include <optional>
|
2019-09-06 15:09:30 +00:00
|
|
|
#include <string>
|
|
|
|
|
|
|
|
#include "Common/Matrix.h"
|
|
|
|
#include "InputCommon/ControllerEmu/ControlGroup/ControlGroup.h"
|
|
|
|
|
|
|
|
namespace ControllerEmu
|
|
|
|
{
|
|
|
|
class IMUAccelerometer : public ControlGroup
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
using StateData = Common::Vec3;
|
|
|
|
|
|
|
|
IMUAccelerometer(std::string name, std::string ui_name);
|
|
|
|
|
|
|
|
std::optional<StateData> GetState() const;
|
2021-05-04 20:58:08 +00:00
|
|
|
|
|
|
|
bool AreInputsBound() const;
|
2019-09-06 15:09:30 +00:00
|
|
|
};
|
|
|
|
} // namespace ControllerEmu
|