logo
pub struct Controller { /* private fields */ }
Expand description

A gamepad, flightstick, or other controller.

Implementations

Get a unique identifier for the specific model of gamepad.

Get the name of this Pad.

Turn on/off haptic force feedback.

Takes either an f32 for mono power or (f32, f32) for directional power. Power will be clamped between 0.0 (off) and 1.0 (maximum power).

The first f32 in directional power is typically low frequency and is located on the left, and the second is typically high frequency and is located on the right (controllers may vary).

Trait Implementations

Formats the value using the given formatter. Read more

The type of value produced on completion.

Attempt to resolve the future to a final value, registering the current task for wakeup if the value is not yet available. 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

Performs the conversion.

Performs the conversion.

🔬 This is a nightly-only experimental API. (into_future)

The output that the future will produce on completion.

🔬 This is a nightly-only experimental API. (into_future)

Which kind of future are we turning this into?

🔬 This is a nightly-only experimental API. (into_future)

Creates a future from a value.

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.