LibMK_Handle¶
-
struct
LibMK_Handle
¶ Struct describing an opened supported device.
Result of libmk_set_device(LibMK_Model, LibMK_Handle**). Contains all the required data to control a keyboard device. Contains a libusb_device_handle* to allow interaction with the keyboard endpoints by the library. Multiple of these may be availble in your program, but no multiple handles for a single device are allowed.
Public Members
-
LibMK_Model
model
¶ Model of the keyboard this handle controls.
-
int
bVendor
¶ USB bVendor ID number.
-
int
bDevice
¶ USB bDevice ID number.
-
LibMK_Layout
layout
¶ Layout of this device.
-
LibMK_Size
size
¶ Size of this device.
-
libusb_device_handle *
handle
¶ libusb_device_handle required for reading from and writing to the device endpoints
-
bool
open
¶ Current state of the handle. If closed, the handle is no longer valid. Handles may not be re-opened.
-
LibMK_Model