Save/load buzzer state.

This commit is contained in:
Jean-Philip Desjardins 2024-06-18 17:00:13 -04:00
parent 1524bbcea1
commit d0dd51a235
7 changed files with 90 additions and 6 deletions

View file

@ -1,8 +1,13 @@
#include "PadHandler.h"
void CPadHandler::InsertListener(CPadInterface* pListener)
void CPadHandler::InsertListener(CPadInterface* listener)
{
m_interfaces.push_back(pListener);
m_interfaces.push_back(listener);
}
bool CPadHandler::HasListener(CPadInterface* listener) const
{
return std::find(m_interfaces.begin(), m_interfaces.end(), listener) != m_interfaces.end();
}
void CPadHandler::RemoveAllListeners()