2009-01-15 06:48:15 +00:00
|
|
|
#include "PluginWiimote.h"
|
|
|
|
|
|
|
|
namespace Common {
|
2009-02-21 12:07:03 +00:00
|
|
|
|
|
|
|
PluginWiimote::PluginWiimote(const char *_Filename)
|
|
|
|
: CPlugin(_Filename), validWiimote(false)
|
|
|
|
{
|
2009-01-15 06:48:15 +00:00
|
|
|
Wiimote_ControlChannel = reinterpret_cast<TWiimote_Output>
|
2009-02-21 12:07:03 +00:00
|
|
|
(LoadSymbol("Wiimote_ControlChannel"));
|
2009-01-15 06:48:15 +00:00
|
|
|
Wiimote_InterruptChannel = reinterpret_cast<TWiimote_Input>
|
2009-02-21 12:07:03 +00:00
|
|
|
(LoadSymbol("Wiimote_InterruptChannel"));
|
2009-01-15 06:48:15 +00:00
|
|
|
Wiimote_Update = reinterpret_cast<TWiimote_Update>
|
2009-02-21 12:07:03 +00:00
|
|
|
(LoadSymbol("Wiimote_Update"));
|
2009-01-15 06:48:15 +00:00
|
|
|
Wiimote_GetAttachedControllers = reinterpret_cast<TWiimote_GetAttachedControllers>
|
2009-02-21 12:07:03 +00:00
|
|
|
(LoadSymbol("Wiimote_GetAttachedControllers"));
|
2009-01-15 06:48:15 +00:00
|
|
|
|
|
|
|
if ((Wiimote_ControlChannel != 0) &&
|
2009-02-21 12:07:03 +00:00
|
|
|
(Wiimote_InterruptChannel != 0) &&
|
|
|
|
(Wiimote_Update != 0) &&
|
|
|
|
(Wiimote_GetAttachedControllers != 0))
|
|
|
|
validWiimote = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
PluginWiimote::~PluginWiimote() {
|
|
|
|
}
|
2009-01-15 06:48:15 +00:00
|
|
|
|
|
|
|
}
|