This repository was archived by the owner on May 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 146
DeviceManager Programmer Notes
Guido Sanchez edited this page Apr 30, 2017
·
5 revisions
This parent class contains and updates all of specific device managers for PSMoveService. It also is the front end for OS specific device queries.
// OS specific implementation of hotplug notification
/**< Initialize the interfaces for each specific manager. */
/**< Poll all connected devices for each specific manager. */
ServerDeviceViewPtr
/**
Returns an upcast device view ptr. Useful for generic functions that are
simple wrappers around the device functions:
open(), getIsOpen(), update(), close(), getIsReadyToPoll()
For anything that requires knowledge of the device, use the class-specific
Server<Type>ViewPtr get<Type>ViewPtr(int device_id) functions instead.
*/
const class DeviceEnumerator *enumerator
const class DeviceEnumerator *enumerator
virtual IDeviceInterface*
Takes DeviceEnumerator Return true if device path matches
// Opens the HID device for the device at the given enumerator
// Polls for new device data
// Get the number of milliseconds we're willing to accept no data from the device before we disconnect it
// Returns what type of device CommonDeviceState::eDeviceType
virtual const CommonDeviceState * getState(int lookBack = 0) const = 0;
// Fetch the device state at the given sample index.
// A lookBack of 0 corresponds to the most recent data.