mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 13:57:57 -07:00
28cbd0a6ba
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2332 8ced0084-cf51-0410-be5f-012b33b47a6e
33 lines
873 B
C++
33 lines
873 B
C++
#ifndef _PLUGINWIIMOTE_H
|
|
#define _PLUGINWIIMOTE_H
|
|
|
|
#include "pluginspecs_wiimote.h"
|
|
#include "Plugin.h"
|
|
|
|
namespace Common {
|
|
|
|
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)();
|
|
|
|
class PluginWiimote : public CPlugin {
|
|
public:
|
|
PluginWiimote(const char *_Filename);
|
|
virtual ~PluginWiimote();
|
|
virtual bool IsValid() {return validWiimote;};
|
|
|
|
TWiimote_Output Wiimote_ControlChannel;
|
|
TWiimote_Input Wiimote_InterruptChannel;
|
|
TWiimote_Update Wiimote_Update;
|
|
TWiimote_GetAttachedControllers Wiimote_GetAttachedControllers;
|
|
|
|
private:
|
|
bool validWiimote;
|
|
};
|
|
|
|
} // namespace
|
|
|
|
#endif
|