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

#pragma once

#include <memory>
#include <string>
#include <vector>

#include "Common/CommonTypes.h"
#include "InputCommon/ControllerEmu/ControlGroup/ControlGroup.h"

namespace ControllerEmu
{
class EmulatedController;

class Extension : public ControlGroup
{
public:
  explicit Extension(const std::string& name);

  void GetState(u8* data);
  bool IsButtonPressed() const;

  std::vector<std::unique_ptr<EmulatedController>> attachments;

  int switch_extension = 0;
  int active_extension = 0;
};
}  // namespace ControllerEmu