![]() |
libvirtualhid 17
Cross-platform C++ library for virtual HID devices.
|
Common interface for virtual device handles. More...
#include <src/include/libvirtualhid/runtime.hpp>
Public Member Functions | |
| virtual OperationStatus | close ()=0 |
| Close the virtual device. | |
| virtual DeviceId | device_id () const =0 |
| Get the device identifier assigned by the runtime. | |
| virtual std::vector< DeviceNode > | device_nodes () const =0 |
| Get platform-visible nodes associated with the device. | |
| virtual bool | is_open () const =0 |
| Check whether the device is open. | |
| virtual const DeviceProfile & | profile () const =0 |
| Get the profile used to create this device. | |
| virtual | ~VirtualDevice ()=default |
| Destroy the virtual device handle. | |
Common interface for virtual device handles.
|
pure virtual |
Close the virtual device.
Implemented in lvh::Gamepad, lvh::Keyboard, lvh::Mouse, lvh::Touchscreen, lvh::Trackpad, and lvh::PenTablet.
|
pure virtual |
Get the device identifier assigned by the runtime.
Implemented in lvh::Gamepad, lvh::Keyboard, lvh::Mouse, lvh::Touchscreen, lvh::Trackpad, and lvh::PenTablet.
|
pure virtual |
Get platform-visible nodes associated with the device.
Implemented in lvh::Gamepad, lvh::Keyboard, lvh::Mouse, lvh::Touchscreen, lvh::Trackpad, and lvh::PenTablet.
|
pure virtual |
Check whether the device is open.
true when the device can accept operations. Implemented in lvh::Gamepad, lvh::Keyboard, lvh::Mouse, lvh::Touchscreen, lvh::Trackpad, and lvh::PenTablet.
|
pure virtual |
Get the profile used to create this device.
Implemented in lvh::Gamepad, lvh::Keyboard, lvh::Mouse, lvh::Touchscreen, lvh::Trackpad, and lvh::PenTablet.