pub struct MouseHaptic { /* private fields */ }
Expand description

A haptic device got from the mouse.

Implementations§

Constructs if the mouse had the haptic device.

Methods from Deref<Target = Haptic>§

Returns the name of the haptic device.

Returns the numbers of the axes on the haptic device.

Returns whether the effect is supported on the haptic device.

Constructs the PendingEffect from the effect specification.

Errors

Returns Err if this feature is unsupported, or failed to create a new haptic effect on the device.

Returns the capacity of the effects on the haptic device.

Returns the maximum numbers of playing the effects at same time on the haptic device.

Stops all the playing effect.

Sets the global gain. If not supported, this has no effects.

Sets auto-center. If not supported, this has no effects.

Queries a property on the haptic device.

Trait Implementations§

Formats the value using the given formatter. Read more
The resulting type after dereferencing.
Dereferences the value.
Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.