Virtual trackpad device handle.
More...
#include <src/include/libvirtualhid/runtime.hpp>
Virtual trackpad device handle.
◆ Trackpad() [1/2]
| lvh::Trackpad::Trackpad |
( |
Trackpad && | other | ) |
|
|
noexcept |
Move construct a trackpad handle.
- Parameters
-
| other | Handle to move from. |
◆ Trackpad() [2/2]
Construct a trackpad handle for Runtime-owned state.
- Parameters
-
| token | Runtime construction token. |
| device | Shared trackpad state. |
◆ button()
Submit a physical trackpad button transition.
- Parameters
-
| pressed | Whether the primary trackpad button is pressed. |
- Returns
- Submit operation status.
◆ close()
◆ device_id()
| DeviceId lvh::Trackpad::device_id |
( |
| ) |
const |
|
overridevirtual |
Get the device identifier assigned by the runtime.
- Returns
- Device identifier.
Implements lvh::VirtualDevice.
◆ device_nodes()
| std::vector< DeviceNode > lvh::Trackpad::device_nodes |
( |
| ) |
const |
|
overridevirtual |
Get platform-visible nodes associated with the device.
- Returns
- Device nodes and diagnostic paths currently known to the backend.
Implements lvh::VirtualDevice.
◆ is_open()
| bool lvh::Trackpad::is_open |
( |
| ) |
const |
|
overridevirtual |
Check whether the device is open.
- Returns
true when the device can accept operations.
Implements lvh::VirtualDevice.
◆ last_submitted_contact()
| TouchContact lvh::Trackpad::last_submitted_contact |
( |
| ) |
const |
Get the most recently submitted touch contact.
- Returns
- Last submitted touch contact.
◆ operator=() [1/2]
Copy assignment is disabled because the handle owns device lifetime.
- Returns
- This trackpad handle.
◆ operator=() [2/2]
Move assign a trackpad handle.
- Parameters
-
| other | Handle to move from. |
- Returns
- This trackpad handle.
◆ place_contact()
Place or move a trackpad contact.
- Parameters
-
| contact | Touch contact state. |
- Returns
- Submit operation status.
◆ profile()
Get the profile used to create this device.
- Returns
- Device profile.
Implements lvh::VirtualDevice.
◆ release_contact()
Release a trackpad contact.
- Parameters
-
| contact_id | Consumer-stable contact identifier. |
- Returns
- Submit operation status.
◆ submit_count()
| std::size_t lvh::Trackpad::submit_count |
( |
| ) |
const |
Get the number of successful submit operations.
- Returns
- Submit count.
The documentation for this class was generated from the following file: