Struct rebind::InputTranslator [] [src]

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

An object which translates piston::input::Input events into input_map::Translated events

Methods

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

Creates an empty InputTranslator.

set_size<Sz: Into<Size>>(&mut self, size: Sz)

Re-set the mouse bounds size used for calculating mouse events

Re-set the mouse bounds size from a viewport

Convert the InputTranslator into an InputRebind. Consumes the InputTranslator.

Trait Implementations

impl<A: Clone + Action, S: Clone + BuildHasher> Clone for InputTranslator<A, S>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter.

impl<A: PartialEq + Action, S: PartialEq + BuildHasher> PartialEq for InputTranslator<A, S>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Performs the conversion.