boo/src/inputdev/CDeviceBase.cpp

23 lines
340 B
C++
Raw Normal View History

2015-04-19 22:52:45 +00:00
#include "inputdev/CDeviceBase.hpp"
#include "inputdev/CDeviceToken.hpp"
#include "IHIDDevice.hpp"
void CDeviceBase::_deviceDisconnected()
{
2015-04-22 21:48:23 +00:00
deviceDisconnected();
m_token = NULL;
2015-04-22 21:48:23 +00:00
m_hidDev->_deviceDisconnected();
m_hidDev = NULL;
}
2015-04-19 22:52:45 +00:00
2015-04-22 21:48:23 +00:00
void CDeviceBase::closeDevice()
{
if (m_token)
m_token->_deviceClose();
}