[][src]Struct yagl::Options

pub struct Options {
    pub enable_gamepad: bool,
    pub scroll_pixel_factor: f32,
}

Fields

enable_gamepad: bool

Enable gamepad support

This is currently not supported in winit directly, so there's a bit of overhead in doing so (i.e. a secondary thread is spawned).

Enabled by default, but may be disabled if doing so is not desired

scroll_pixel_factor: f32

Scrolling can be done with either a wheel on a mouse, or with e.g. a trackpad.

The wheel on a mouse usually comes in more discreet intervals, and when available, trackpad information is provided in logical pixels.

The option here allows you to customize the value passed to Game::scroll by providing a factor to multiply with if the input source works with line deltas instead of pixel deltas.

By default, set to 1.0

Trait Implementations

impl Clone for Options[src]

impl Debug for Options[src]

impl Default for Options[src]

Auto Trait Implementations

impl RefUnwindSafe for Options

impl Send for Options

impl Sync for Options

impl Unpin for Options

impl UnwindSafe for Options

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SetParameter for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.