Inherited by Joystick.
Public Member Functions | |
unsigned int | Index (void) const |
Get peripheral index identifier. | |
bool | IsVidPidKnown (void) const |
Check VID and PID are known. | |
const std::string & | Name (void) const |
Get peripheral name. | |
bool | operator== (const Peripheral &rhs) const |
Comparison operator. | |
Peripheral (const PERIPHERAL_INFO &info) | |
Peripheral (PERIPHERAL_TYPE type=PERIPHERAL_TYPE_UNKNOWN, const std::string &strName="") | |
Constructor. | |
uint16_t | ProductID (void) const |
Get peripheral product id. | |
void | SetIndex (unsigned int index) |
Set peripheral index. | |
void | SetName (const std::string &strName) |
Set peripheral name. | |
void | SetProductID (uint16_t productId) |
Set peripheral product identifier. | |
void | SetType (PERIPHERAL_TYPE type) |
Set peripheral type. | |
void | SetVendorID (uint16_t vendorId) |
Set peripheral vendor id. | |
void | ToStruct (PERIPHERAL_INFO &info) const |
PERIPHERAL_TYPE | Type (void) const |
Get peripheral type. | |
uint16_t | VendorID (void) const |
Get peripheral vendor id. | |
virtual | ~Peripheral (void)=default |
Destructor. | |
Static Public Member Functions | |
static void | FreeStruct (PERIPHERAL_INFO &info) |