mirror of
https://github.com/jpd002/Play-.git
synced 2025-04-28 13:47:57 +03:00
16 lines
364 B
C++
16 lines
364 B
C++
#include "PadHandler.h"
|
|
|
|
void CPadHandler::InsertListener(CPadInterface* listener)
|
|
{
|
|
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()
|
|
{
|
|
m_interfaces.clear();
|
|
}
|