Struct rebind::Builder [] [src]

pub struct Builder<A: Action, S: BuildHasher = RandomState> { /* fields omitted */ }

Convenience object for constructing an InputMap.

Methods

impl<A: Action, S: BuildHasher + Default> Builder<A, S>
[src]

Creates a new Builder with the specified viewport size.

Set whether the x scroll is inverted on the builder.

Returns true if the x scroll is inverted on the builder.

Set whether the y scroll is inverted on the builder.

Returns true if the y scroll is inverted on the builder.

Set whether the x axis motion is inverted on the builder.

Returns true if the x axis motion is inverted on the builder.

Set whether the y axis motion is inverted on the builder.

Returns true if the y axis motion is inverted on the builder.

Set the mouse sensitivity.

Returns the mouse sensitivity.

Sets the viewport size used for mouse position calculations.

Returns the currently set viewport size.

Add an association between the Button and Action.

Creates an InputTranslator from this builder object.

Creates an InputRebind from this builder object.

Trait Implementations

impl<A: Debug + Action, S: Debug + BuildHasher> Debug for Builder<A, S>
[src]

Formats the value using the given formatter.

impl<A: Action, S: BuildHasher + Default> Default for Builder<A, S>
[src]

Returns the "default value" for a type. Read more

impl<A: Action, S: BuildHasher + Default> Into<InputTranslator<A, S>> for Builder<A, S>
[src]

Performs the conversion.

impl<A: Action, S: BuildHasher + Default> Into<InputRebind<A, S>> for Builder<A, S>
[src]

Performs the conversion.