mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-07 05:03:32 +01:00
e43ad58a3a
Remove the duplication here and just have one Rumble interface that takes a single strength parameter.
42 lines
879 B
C++
42 lines
879 B
C++
// Copyright 2013 Dolphin Emulator Project
|
|
// Licensed under GPLv2
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
|
|
#include "InputCommon/ControllerEmu.h"
|
|
|
|
class GCPad : public ControllerEmu
|
|
{
|
|
public:
|
|
|
|
GCPad(const unsigned int index);
|
|
void GetInput(GCPadStatus* const pad);
|
|
void SetOutput(const ControlState strength);
|
|
|
|
bool GetMicButton() const;
|
|
|
|
std::string GetName() const override;
|
|
|
|
void LoadDefaults(const ControllerInterface& ciface) override;
|
|
|
|
private:
|
|
|
|
Buttons* m_buttons;
|
|
AnalogStick* m_main_stick;
|
|
AnalogStick* m_c_stick;
|
|
Buttons* m_dpad;
|
|
MixedTriggers* m_triggers;
|
|
ControlGroup* m_rumble;
|
|
ControlGroup* m_options;
|
|
|
|
const unsigned int m_index;
|
|
|
|
// TODO: Make constexpr when VS supports it.
|
|
//
|
|
// Default analog stick radius for GameCube controllers.
|
|
static const ControlState DEFAULT_PAD_STICK_RADIUS;
|
|
};
|