mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
[Android] Fix multi-gamecube controller input, config changes
This commit is contained in:
@ -201,20 +201,12 @@ namespace ButtonManager
|
||||
auto it = m_controllers.find(dev);
|
||||
if (it != m_controllers.end())
|
||||
return it->second->PressEvent(button, action);
|
||||
|
||||
m_controllers[dev] = new InputDevice(dev);
|
||||
return m_controllers[dev]->PressEvent(button, action);
|
||||
}
|
||||
void GamepadAxisEvent(const std::string& dev, int axis, float value)
|
||||
{
|
||||
auto it = m_controllers.find(dev);
|
||||
if (it != m_controllers.end())
|
||||
{
|
||||
it->second->AxisEvent(axis, value);
|
||||
return;
|
||||
}
|
||||
m_controllers[dev] = new InputDevice(dev);
|
||||
m_controllers[dev]->AxisEvent(axis, value);
|
||||
}
|
||||
void Shutdown()
|
||||
{
|
||||
|
Reference in New Issue
Block a user