2015-05-24 06:55:12 +02:00
|
|
|
// Copyright 2015 Dolphin Emulator Project
|
2015-05-18 01:08:10 +02:00
|
|
|
// Licensed under GPLv2+
|
2015-01-17 09:36:05 +11:00
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
|
|
#include "InputCommon/ControllerEmu.h"
|
2015-05-08 17:28:03 -04:00
|
|
|
|
|
|
|
|
struct KeyboardStatus;
|
2015-01-17 09:36:05 +11:00
|
|
|
|
|
|
|
|
class GCKeyboard : public ControllerEmu
|
|
|
|
|
{
|
|
|
|
|
public:
|
2016-06-24 10:43:46 +02:00
|
|
|
GCKeyboard(const unsigned int index);
|
|
|
|
|
void GetInput(KeyboardStatus* const pad);
|
|
|
|
|
std::string GetName() const override;
|
|
|
|
|
void LoadDefaults(const ControllerInterface& ciface) override;
|
2015-01-17 09:36:05 +11:00
|
|
|
|
|
|
|
|
private:
|
2016-06-24 10:43:46 +02:00
|
|
|
Buttons* m_keys0x;
|
|
|
|
|
Buttons* m_keys1x;
|
|
|
|
|
Buttons* m_keys2x;
|
|
|
|
|
Buttons* m_keys3x;
|
|
|
|
|
Buttons* m_keys4x;
|
|
|
|
|
Buttons* m_keys5x;
|
|
|
|
|
ControlGroup* m_options;
|
|
|
|
|
|
|
|
|
|
const unsigned int m_index;
|
2015-01-17 09:36:05 +11:00
|
|
|
};
|