boo/include/inputdev/CDeviceBase.hpp

19 lines
366 B
C++
Raw Normal View History

2015-04-19 22:52:45 +00:00
#ifndef CDEVICEBASE
#define CDEVICEBASE
class CDeviceToken;
class IHIDDevice;
2015-04-19 22:52:45 +00:00
class CDeviceBase
{
CDeviceToken* m_token;
IHIDDevice* m_hidDev;
2015-04-19 22:52:45 +00:00
public:
inline CDeviceBase(CDeviceToken* token, IHIDDevice* hidDev)
: m_token(token), m_hidDev(hidDev) {}
void _deviceDisconnected();
virtual void deviceDisconnected()=0;
2015-04-19 22:52:45 +00:00
};
#endif // CDEVICEBASE