mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-25 11:46:27 +00:00
[Android] Fix the ability to stop the game and start another.
This commit is contained in:
parent
bab91494d5
commit
96a77f9feb
6 changed files with 12 additions and 3 deletions
|
@ -177,6 +177,8 @@ namespace ButtonManager
|
|||
delete *it;
|
||||
for (auto it = m_controllers.begin(); it != m_controllers.end(); ++it)
|
||||
delete it->second;
|
||||
m_controllers.clear();
|
||||
m_buttons.clear();
|
||||
}
|
||||
|
||||
void DrawButtons()
|
||||
|
|
|
@ -118,7 +118,7 @@ namespace ButtonManager
|
|||
~InputDevice()
|
||||
{
|
||||
for (auto it = m_binds.begin(); it != m_binds.end(); ++it)
|
||||
delete it->second;
|
||||
delete it->second;
|
||||
}
|
||||
void AddBind(sBind *bind) { m_binds[bind->m_buttontype] = bind; }
|
||||
void PressEvent(int button, int action);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue