Utility class to manage the wand stream. More...
#include <TiltFiveNative.hpp>
Public Member Functions | |
auto | consumeLastAsyncError () -> std::error_code |
Obtain and consume the last asynchronous error. More... | |
auto | listWands () -> Result< std::vector< std::shared_ptr< Wand > > > |
Obtain a list of tiltfive::Wand. More... | |
auto | sendImpulse (const T5_WandHandle &handle, float amplitude, uint16_t duration) -> Result< void > |
Send a haptic impulse to a specific tiltfive::Wand. More... | |
Utility class to manage the wand stream.
De-multiplexes the wand stream into abstract tiltfive::Wand objects that can be independently queried for their last known state.
See Using WandStreamHelper for usage.
Definition at line 938 of file TiltFiveNative.hpp.
|
inline |
Obtain and consume the last asynchronous error.
The connection process may produce errors asynchronously which can be detected by calling this.
Definition at line 1093 of file TiltFiveNative.hpp.
|
inline |
Obtain a list of tiltfive::Wand.
The tiltfive::WandStreamHelper maintains a stream reader thread while there are any outstanding references to the returned tiltfive::Wand objects, automatically terminating the stream when they go out of scope.
Definition at line 1104 of file TiltFiveNative.hpp.
|
inline |
Send a haptic impulse to a specific tiltfive::Wand.
[in] | handle | - The handle of the desired tiltfive::Wand to receive the impulse. |
[in] | amplitude | - The amplitude of the impulse, between (0.0 and 1.0]. |
[in] | duration | - The duration, in ms, of the impulse. Must be between 1 and 320ms. |
Definition at line 1138 of file TiltFiveNative.hpp.