mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-13 00:58:29 +02:00
Made it easer to use mouse/keyboard and a gamepad together on the same emulated wiimote. Renamed mouse buttons from "Button N" to "Click N" so they do not conflict with gamepad buttons.(hopefully not too ugly, mouse buttons will need to be reconfigured) (Fixes issue 3363)
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6289 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -419,6 +419,29 @@ void ControllerInterface::UpdateReference(ControllerInterface::ControlReference*
|
||||
devc.control = *i;
|
||||
ref->m_controls.push_back(devc);
|
||||
}
|
||||
else
|
||||
{
|
||||
// the input wasn't found, look through all the other devices
|
||||
|
||||
std::vector<Device*>::const_iterator
|
||||
deviter = m_devices.begin(),
|
||||
devend = m_devices.end();
|
||||
|
||||
for(; deviter != devend; ++deviter)
|
||||
{
|
||||
for(i = (*deviter)->Inputs().begin(); i < (*deviter)->Inputs().end(); ++i)
|
||||
if(*(*i) == ctrl_str)
|
||||
break;
|
||||
|
||||
if ((*deviter)->Inputs().end() != i)
|
||||
{
|
||||
devc.device = *deviter;
|
||||
devc.control = *i;
|
||||
ref->m_controls.push_back(devc);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user