From a5edf59787d0b1fd501540faec9ac49ca5bce348 Mon Sep 17 00:00:00 2001 From: Glenn Rice Date: Sat, 10 Apr 2010 20:44:56 +0000 Subject: Get GCPadNew keyboard working in linux. Also some code cleanup. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5320 8ced0084-cf51-0410-be5f-012b33b47a6e --- .../Src/ControllerInterface/ControllerInterface.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'Source/Plugins/Plugin_GCPadNew/Src/ControllerInterface/ControllerInterface.cpp') diff --git a/Source/Plugins/Plugin_GCPadNew/Src/ControllerInterface/ControllerInterface.cpp b/Source/Plugins/Plugin_GCPadNew/Src/ControllerInterface/ControllerInterface.cpp index d1b97c7e37..bec1b6e58c 100644 --- a/Source/Plugins/Plugin_GCPadNew/Src/ControllerInterface/ControllerInterface.cpp +++ b/Source/Plugins/Plugin_GCPadNew/Src/ControllerInterface/ControllerInterface.cpp @@ -238,7 +238,7 @@ ControlState ControllerInterface::InputReference::State( const ControlState igno if ( NULL == device ) return 0; - ControlState state; + ControlState state = 0; // this mode thing will be turned into a switch statement switch ( mode ) { @@ -360,11 +360,7 @@ void ControllerInterface::DeviceQualifier::FromDevice(const ControllerInterface: // bool ControllerInterface::DeviceQualifier::operator==(const ControllerInterface::Device* const dev) const { - if ( dev->GetName() == name ) - if ( dev->GetId() == cid ) - if ( dev->GetSource() == source ) - return true; - return false; + return (dev->GetName() == name) && (dev->GetId() == cid) && (dev->GetSource() == source); } // -- cgit v1.2.3