The QFeedbackActuator class is describing actuators for tactile feedback. More...
#include <QFeedbackActuator>
enum | Capability { Envelope, Period } |
enum | State { Busy, Ready, Unknown } |
QFeedbackActuator () | |
int | id () const |
bool | isCapabilitySupported ( Capability capability ) const |
bool | isEnabled () const |
bool | isValid () const |
QString | name () const |
void | setEnabled ( bool enabled ) |
State | state () const |
bool | operator== ( const QFeedbackActuator & other ) const |
QList<QFeedbackActuator> | actuators () |
The QFeedbackActuator class is describing actuators for tactile feedback.
The class gives access to a specified actuator for tactile feedback. It allows the program to know its state and can be used in combination with QFeedbackHapticsEffect.
You can query the actuators available on your system.
See also QFeedbackHapticsEffect.
Constant | Value | Description |
---|---|---|
QFeedbackActuator::Envelope | 0 | Capability defining the wave type with attack/fade times and levels. |
QFeedbackActuator::Period | 1 | Capability defining that the device can play periodic effects. |
Constant | Value | Description |
---|---|---|
QFeedbackActuator::Busy | 0 | The actuator is busy. |
QFeedbackActuator::Ready | 1 | The actuator is ready to play an effect. |
QFeedbackActuator::Unknown | 2 | The actuator is in an anknown state. |
Constructs a QFeedbackActuator. It will represent the default actuator on the system.
If there are no actuators attached to the system, isValid() will return false.
See also isValid().
returns the list of actuators available on the system.
returns the id of the actuator
returns if the actuator supports the capability capability.
returns true if you can use this actuator to start effects.
returns true if the actuator is valid.
returns the name of the actuator.
Allows to enable or disable a actuator to enabled.
See also isEnabled().
returns the state of the actuator.
returns true if the actuators are the same