mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-10-03 19:58:33 +00:00
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
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user