From eda652b7a07a8df57b5953a51c1eb96246778d64 Mon Sep 17 00:00:00 2001 From: Jordan Woyak Date: Sat, 18 Sep 2010 16:43:43 +0000 Subject: New Wiimote Plugin: Fix Emulated Wiimote Problem.(fixes issue 3230) Made the "Connected to X Wiimotes" text update on all tabs when clicking "Refresh"/"Pair Up". Some other cleanup. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6216 8ced0084-cf51-0410-be5f-012b33b47a6e --- .../Src/ControllerInterface/DInput/DInputJoystick.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'Source/Core/InputCommon/Src/ControllerInterface/DInput/DInputJoystick.cpp') diff --git a/Source/Core/InputCommon/Src/ControllerInterface/DInput/DInputJoystick.cpp b/Source/Core/InputCommon/Src/ControllerInterface/DInput/DInputJoystick.cpp index f88e90b1cc..f2a4f5561c 100644 --- a/Source/Core/InputCommon/Src/ControllerInterface/DInput/DInputJoystick.cpp +++ b/Source/Core/InputCommon/Src/ControllerInterface/DInput/DInputJoystick.cpp @@ -435,6 +435,12 @@ bool Joystick::UpdateInput() bool Joystick::UpdateOutput() { size_t ok_count = 0; + + DIEFFECT eff; + ZeroMemory(&eff, sizeof(eff)); + eff.dwSize = sizeof(DIEFFECT); + eff.dwFlags = DIEFF_CARTESIAN | DIEFF_OBJECTOFFSETS; + std::vector::iterator i = m_state_out.begin(), e = m_state_out.end(); @@ -444,10 +450,6 @@ bool Joystick::UpdateOutput() { if (i->size) { - DIEFFECT eff; - ZeroMemory(&eff, sizeof(eff)); - eff.dwSize = sizeof(DIEFFECT); - eff.dwFlags = DIEFF_CARTESIAN | DIEFF_OBJECTOFFSETS; eff.cbTypeSpecificParams = i->size; eff.lpvTypeSpecificParams = i->params; // set params and start effect -- cgit v1.2.3