summaryrefslogtreecommitdiff
path: root/Source/Plugins/Plugin_GCPadNew/Src/ControllerInterface/ControllerInterface.cpp
diff options
context:
space:
mode:
authorGlenn Rice <glennricster@gmail.com>2010-04-10 20:44:56 +0000
committerGlenn Rice <glennricster@gmail.com>2010-04-10 20:44:56 +0000
commita5edf59787d0b1fd501540faec9ac49ca5bce348 (patch)
treeb1cf8bfecdcaa28a299d908aa63aea8945ab6766 /Source/Plugins/Plugin_GCPadNew/Src/ControllerInterface/ControllerInterface.cpp
parentd00f5b20a1493b437efeca825dca3544489ba99a (diff)
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
Diffstat (limited to 'Source/Plugins/Plugin_GCPadNew/Src/ControllerInterface/ControllerInterface.cpp')
-rw-r--r--Source/Plugins/Plugin_GCPadNew/Src/ControllerInterface/ControllerInterface.cpp8
1 files changed, 2 insertions, 6 deletions
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);
}
//