Struct stick::Controller
source · [−]pub struct Controller { /* private fields */ }
Expand description
A gamepad, flightstick, or other controller.
Implementations
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
Auto Trait Implementations
impl !RefUnwindSafe for Controller
impl !Send for Controller
impl !Sync for Controller
impl Unpin for Controller
impl !UnwindSafe for Controller
Blanket Implementations
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (
into_future
)The output that the future will produce on completion.
type Future = F
type Future = F
🔬 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.