Guard against controller instances without any inputs.
Clean up OS X keyboard key names. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6985 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
1 parent
aa410c8eea
commit
f41e5b3b85
6 files changed
+121
-189
No files matched your search
@@ -505,6 +505,9 @@ ControllerInterface::Device::Control* ControllerInterface::InputReference::Detec
|
||||
unsigned int time = 0;
|
||||
bool* const states = new bool[device->Inputs().size()];
|
||||
|
||||
if (device->Inputs().size() == 0)
|
||||
return NULL;
|
||||
|
||||
// get starting state of all inputs,
|
||||
// so we can ignore those that were activated at time of Detect start
|
||||
std::vector<Device::Input*>::const_iterator
|
||||
|
||||
Reference in new issue
Block a user