2009-01-14 23:48:15 -07:00
|
|
|
#ifndef _PLUGINWIIMOTE_H
|
|
|
|
#define _PLUGINWIIMOTE_H
|
|
|
|
|
|
|
|
#include "pluginspecs_wiimote.h"
|
|
|
|
#include "Plugin.h"
|
|
|
|
|
|
|
|
namespace Common {
|
|
|
|
|
2009-02-21 05:07:03 -07:00
|
|
|
typedef unsigned int (__cdecl* TPAD_GetAttachedPads)();
|
|
|
|
typedef void (__cdecl* TWiimote_Update)();
|
|
|
|
typedef void (__cdecl* TWiimote_Output)(u16 _channelID, const void* _pData, u32 _Size);
|
|
|
|
typedef void (__cdecl* TWiimote_Input)(u16 _channelID, const void* _pData, u32 _Size);
|
|
|
|
typedef unsigned int (__cdecl* TWiimote_GetAttachedControllers)();
|
2009-01-14 23:48:15 -07:00
|
|
|
|
2009-02-21 05:07:03 -07:00
|
|
|
class PluginWiimote : public CPlugin {
|
|
|
|
public:
|
2009-01-14 23:48:15 -07:00
|
|
|
PluginWiimote(const char *_Filename);
|
2009-02-21 05:07:03 -07:00
|
|
|
virtual ~PluginWiimote();
|
2009-01-14 23:48:15 -07:00
|
|
|
virtual bool IsValid() {return validWiimote;};
|
|
|
|
|
2009-02-21 05:07:03 -07:00
|
|
|
TWiimote_Output Wiimote_ControlChannel;
|
|
|
|
TWiimote_Input Wiimote_InterruptChannel;
|
|
|
|
TWiimote_Update Wiimote_Update;
|
2009-01-14 23:48:15 -07:00
|
|
|
TWiimote_GetAttachedControllers Wiimote_GetAttachedControllers;
|
|
|
|
|
2009-02-21 05:07:03 -07:00
|
|
|
private:
|
2009-01-14 23:48:15 -07:00
|
|
|
bool validWiimote;
|
2009-02-21 05:07:03 -07:00
|
|
|
};
|
2009-01-14 23:48:15 -07:00
|
|
|
|
2009-02-21 05:07:03 -07:00
|
|
|
} // namespace
|
2009-01-14 23:48:15 -07:00
|
|
|
|
|
|
|
#endif
|