blob: b03dc5a8b1f191ccf6eb6a26d9888142158e196d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
// 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"
#include "InputCommon/ControllerInterface/Device.h"
namespace ControllerEmu
{
class Tilt : public ControlGroup
{
public:
struct StateData
{
ControlState x{};
ControlState y{};
};
explicit Tilt(const std::string& name);
StateData GetState(bool step = true);
private:
StateData m_tilt;
};
} // namespace ControllerEmu
|