From 0bf3dfda036f1da0cb26e1f266ea500fbe74f872 Mon Sep 17 00:00:00 2001 From: Jordan Woyak Date: Sat, 3 Jul 2010 08:04:10 +0000 Subject: New Wiimote Plugin: Added real wiimote support.(only tested on Windows, still a few probs: after refresh alt+F{5..8} x2 is needed) New Wiimote/GCPad: Re-merged Keyboard+Mouse for easier kb+mouse configuration, like before.(DirectInput doesn't support individual kb/mice anymore like I thought it did) Fixed some bugs and maybe leaks in GUI.(got rid of evil dynamic_cast) Renamed stuff from DirectInput to DInput, cause it's shorter and rhymes with XInput, I guess. (I remembered eol-style native, shuffle lost his job :P) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5822 8ced0084-cf51-0410-be5f-012b33b47a6e --- .../Src/ControllerInterface/ControllerInterface.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'Source/Core/InputCommon/Src/ControllerInterface/ControllerInterface.cpp') diff --git a/Source/Core/InputCommon/Src/ControllerInterface/ControllerInterface.cpp b/Source/Core/InputCommon/Src/ControllerInterface/ControllerInterface.cpp index 2888465487..cfdb114425 100644 --- a/Source/Core/InputCommon/Src/ControllerInterface/ControllerInterface.cpp +++ b/Source/Core/InputCommon/Src/ControllerInterface/ControllerInterface.cpp @@ -3,8 +3,8 @@ #ifdef CIFACE_USE_XINPUT #include "XInput/XInput.h" #endif -#ifdef CIFACE_USE_DIRECTINPUT - #include "DirectInput/DirectInput.h" +#ifdef CIFACE_USE_DINPUT + #include "DInput/DInput.h" #endif #ifdef CIFACE_USE_XLIB #include "Xlib/Xlib.h" @@ -30,8 +30,8 @@ void ControllerInterface::Init() if ( m_is_init ) return; -#ifdef CIFACE_USE_DIRECTINPUT - ciface::DirectInput::Init(m_devices); +#ifdef CIFACE_USE_DINPUT + ciface::DInput::Init(m_devices); #endif #ifdef CIFACE_USE_XINPUT ciface::XInput::Init(m_devices); @@ -88,7 +88,7 @@ void ControllerInterface::DeInit(const bool hacks_no_sdl_quit) #ifdef CIFACE_USE_XINPUT // nothing needed #endif -#ifdef CIFACE_USE_DIRECTINPUT +#ifdef CIFACE_USE_DINPUT // nothing needed #endif #ifdef CIFACE_USE_XLIB @@ -364,7 +364,7 @@ void ControllerInterface::UpdateReference(ControllerInterface::ControlReference* // adding | to parse the last item, silly std::istringstream ss(ref->expression + '|'); - const std::string mode_chars("|&!#"); + const std::string mode_chars("|&!^"); ControlReference::DeviceControl devc; @@ -530,6 +530,7 @@ ControllerInterface::Device::Control* ControllerInterface::OutputReference::Dete // this loop is to make stuff like flashing keyboard LEDs work while (ms > (slept += 10)) { + // TODO: improve this to update more than just the default device's output device->UpdateOutput(); Common::SleepCurrentThread(10); } -- cgit v1.2.3