2017-02-09 03:15:43 +00:00
|
|
|
// Copyright 2017 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2+
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include "InputCommon/ControllerEmu/ControlGroup/ControlGroup.h"
|
2017-04-04 19:37:31 +00:00
|
|
|
#include "InputCommon/ControllerInterface/Device.h"
|
2017-02-09 03:15:43 +00:00
|
|
|
|
|
|
|
namespace ControllerEmu
|
|
|
|
{
|
|
|
|
class Tilt : public ControlGroup
|
|
|
|
{
|
|
|
|
public:
|
2018-07-13 15:04:40 +00:00
|
|
|
struct StateData
|
|
|
|
{
|
|
|
|
ControlState x{};
|
|
|
|
ControlState y{};
|
|
|
|
};
|
|
|
|
|
2017-02-09 03:15:43 +00:00
|
|
|
explicit Tilt(const std::string& name);
|
|
|
|
|
2018-07-13 15:04:40 +00:00
|
|
|
StateData GetState(bool step = true);
|
2017-02-09 03:15:43 +00:00
|
|
|
|
|
|
|
private:
|
2018-07-13 15:04:40 +00:00
|
|
|
StateData m_tilt;
|
2017-02-09 03:15:43 +00:00
|
|
|
};
|
|
|
|
} // namespace ControllerEmu
|