2006-06-15 04:19:30 +00:00
|
|
|
#include "PadHandler.h"
|
2024-07-17 19:30:07 -04:00
|
|
|
#include <algorithm>
|
2006-06-15 04:19:30 +00:00
|
|
|
|
2024-06-18 17:00:13 -04:00
|
|
|
void CPadHandler::InsertListener(CPadInterface* listener)
|
2006-06-15 04:19:30 +00:00
|
|
|
{
|
2024-06-18 17:00:13 -04:00
|
|
|
m_interfaces.push_back(listener);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CPadHandler::HasListener(CPadInterface* listener) const
|
|
|
|
{
|
|
|
|
return std::find(m_interfaces.begin(), m_interfaces.end(), listener) != m_interfaces.end();
|
2006-06-15 04:19:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void CPadHandler::RemoveAllListeners()
|
|
|
|
{
|
2023-10-31 19:50:26 +00:00
|
|
|
m_interfaces.clear();
|
2006-06-15 04:19:30 +00:00
|
|
|
}
|