summaryrefslogtreecommitdiff
path: root/Source/Plugins/Plugin_GCPadNew/Src/ControllerInterface/ControllerInterface.cpp
diff options
context:
space:
mode:
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);
}
//