summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerEmu/ControlGroup/Tilt.h
blob: 622fba3710121e6a6f67eea5280284f2fff4ab62 (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
// Copyright 2017 Dolphin Emulator Project
// Licensed under GPLv2+
// Refer to the license.txt file included.

#pragma once

#include <array>
#include <string>
#include "InputCommon/ControllerEmu/ControlGroup/ControlGroup.h"
#include "InputCommon/ControllerInterface/Device.h"

namespace ControllerEmu
{
class Tilt : public ControlGroup
{
public:
  explicit Tilt(const std::string& name);

  void GetState(ControlState* x, ControlState* y, bool step = true);

private:
  std::array<ControlState, 2> m_tilt{};
};
}  // namespace ControllerEmu