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
|
|
|
|
|
2017-02-12 01:18:02 +00:00
|
|
|
#include <array>
|
2017-02-09 03:15:43 +00:00
|
|
|
#include <string>
|
|
|
|
#include "InputCommon/ControllerEmu/ControlGroup/ControlGroup.h"
|
|
|
|
|
|
|
|
namespace ControllerEmu
|
|
|
|
{
|
|
|
|
class Tilt : public ControlGroup
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
explicit Tilt(const std::string& name);
|
|
|
|
|
|
|
|
void GetState(ControlState* x, ControlState* y, bool step = true);
|
|
|
|
|
|
|
|
private:
|
2017-02-12 01:18:02 +00:00
|
|
|
std::array<ControlState, 2> m_tilt{};
|
2017-02-09 03:15:43 +00:00
|
|
|
};
|
|
|
|
} // namespace ControllerEmu
|