mirror of
https://github.com/AxioDL/boo.git
synced 2025-12-08 21:17:50 +00:00
initial WinUSB implementation
This commit is contained in:
@@ -13,7 +13,7 @@ class CDeviceBase
|
||||
friend class CDeviceToken;
|
||||
friend class CHIDDeviceIOKit;
|
||||
friend class CHIDDeviceUdev;
|
||||
friend class CHIDDeviceWin32;
|
||||
friend class CHIDDeviceWinUSB;
|
||||
|
||||
class CDeviceToken* m_token;
|
||||
class IHIDDevice* m_hidDev;
|
||||
|
||||
@@ -19,7 +19,7 @@ class CDeviceFinder
|
||||
public:
|
||||
friend class CHIDListenerIOKit;
|
||||
friend class CHIDListenerUdev;
|
||||
friend class CHIDListenerWin32;
|
||||
friend class CHIDListenerWinUSB;
|
||||
static inline CDeviceFinder* instance() {return skDevFinder;}
|
||||
|
||||
private:
|
||||
|
||||
@@ -69,7 +69,7 @@ public:
|
||||
inline const std::string& getVendorName() const {return m_vendorName;}
|
||||
inline const std::string& getProductName() const {return m_productName;}
|
||||
inline const std::string& getDevicePath() const {return m_devPath;}
|
||||
inline bool isDeviceOpen() const {return m_connectedDev;}
|
||||
inline bool isDeviceOpen() const {return (m_connectedDev != NULL);}
|
||||
inline CDeviceBase* openAndGetDevice()
|
||||
{
|
||||
if (!m_connectedDev)
|
||||
|
||||
Reference in New Issue
Block a user