mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-11 16:49:28 +02:00
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:
@ -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