[Project64] Clean up Controller Plugin.cpp
This commit is contained in:
parent
c317c645bf
commit
fbe62d9567
|
@ -11,13 +11,13 @@
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
|
|
||||||
CControl_Plugin::CControl_Plugin(void) :
|
CControl_Plugin::CControl_Plugin(void) :
|
||||||
WM_KeyDown(NULL),
|
WM_KeyDown(NULL),
|
||||||
WM_KeyUp(NULL),
|
WM_KeyUp(NULL),
|
||||||
RumbleCommand(NULL),
|
RumbleCommand(NULL),
|
||||||
GetKeys(NULL),
|
GetKeys(NULL),
|
||||||
ReadController(NULL),
|
ReadController(NULL),
|
||||||
ControllerCommand(NULL),
|
ControllerCommand(NULL),
|
||||||
m_AllocatedControllers(false)
|
m_AllocatedControllers(false)
|
||||||
{
|
{
|
||||||
memset(&m_PluginControllers, 0, sizeof(m_PluginControllers));
|
memset(&m_PluginControllers, 0, sizeof(m_PluginControllers));
|
||||||
memset(&m_Controllers, 0, sizeof(m_Controllers));
|
memset(&m_Controllers, 0, sizeof(m_Controllers));
|
||||||
|
@ -74,7 +74,7 @@ bool CControl_Plugin::Initiate(CN64System * System, RenderWindow * Window)
|
||||||
void(__cdecl *InitiateControllers_1_0)(HWND hMainWindow, CONTROL Controls[4]);
|
void(__cdecl *InitiateControllers_1_0)(HWND hMainWindow, CONTROL Controls[4]);
|
||||||
InitiateControllers_1_0 = (void(__cdecl *)(HWND, CONTROL *))GetProcAddress((HMODULE)m_hDll, "InitiateControllers");
|
InitiateControllers_1_0 = (void(__cdecl *)(HWND, CONTROL *))GetProcAddress((HMODULE)m_hDll, "InitiateControllers");
|
||||||
if (InitiateControllers_1_0 == NULL) { return false; }
|
if (InitiateControllers_1_0 == NULL) { return false; }
|
||||||
InitiateControllers_1_0((HWND)Window->GetWindowHandle(),m_PluginControllers);
|
InitiateControllers_1_0((HWND)Window->GetWindowHandle(), m_PluginControllers);
|
||||||
m_Initialized = true;
|
m_Initialized = true;
|
||||||
}
|
}
|
||||||
else if (m_PluginInfo.Version >= 0x0101)
|
else if (m_PluginInfo.Version >= 0x0101)
|
||||||
|
@ -174,7 +174,7 @@ void CControl_Plugin::SetControl(CControl_Plugin const * const Plugin)
|
||||||
}
|
}
|
||||||
|
|
||||||
CCONTROL::CCONTROL(int32_t &Present, int32_t &RawData, int32_t &PlugType) :
|
CCONTROL::CCONTROL(int32_t &Present, int32_t &RawData, int32_t &PlugType) :
|
||||||
m_Present(Present), m_RawData(RawData), m_PlugType(PlugType)
|
m_Present(Present), m_RawData(RawData), m_PlugType(PlugType)
|
||||||
{
|
{
|
||||||
m_Buttons.Value = 0;
|
m_Buttons.Value = 0;
|
||||||
}
|
}
|
Loading…
Reference in New Issue