2010-04-02 02:48:24 +00:00
|
|
|
#ifndef _CONEMU_GCPAD_H_
|
|
|
|
#define _CONEMU_GCPAD_H_
|
|
|
|
|
2010-04-13 05:15:38 +00:00
|
|
|
#include <ControllerEmu.h>
|
2010-04-02 02:48:24 +00:00
|
|
|
|
2010-04-24 00:44:10 +00:00
|
|
|
extern SPADInitialize *g_PADInitialize;
|
|
|
|
|
2010-04-02 02:48:24 +00:00
|
|
|
class GCPad : public ControllerEmu
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
GCPad( const unsigned int index );
|
|
|
|
void GetInput( SPADStatus* const pad );
|
|
|
|
void SetOutput( const bool on );
|
|
|
|
|
|
|
|
std::string GetName() const;
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
Buttons* m_buttons;
|
|
|
|
AnalogStick* m_main_stick;
|
|
|
|
AnalogStick* m_c_stick;
|
|
|
|
Buttons* m_dpad;
|
|
|
|
MixedTriggers* m_triggers;
|
|
|
|
ControlGroup* m_rumble;
|
2010-04-24 00:44:10 +00:00
|
|
|
ControlGroup* m_options;
|
2010-04-02 02:48:24 +00:00
|
|
|
|
|
|
|
const unsigned int m_index;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|