mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 13:57:57 -07:00
91993b46d9
Trims out unnecessary includes to avoid unnecessary header dependencies. This also resolves indirect inclusions of <optional> within IMUAccelerometer.h and IMUGyroscope.h
25 lines
512 B
C++
25 lines
512 B
C++
// Copyright 2019 Dolphin Emulator Project
|
|
// Licensed under GPLv2+
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <optional>
|
|
#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;
|
|
};
|
|
} // namespace ControllerEmu
|