Trait dotrix::input::ActionMapper [−][src]
pub trait ActionMapper<T> where
T: Copy + Eq + Hash, {
fn action_mapped(&self, action: T) -> Option<&Button>;
}
Expand description
Game action to input mapping
Required methods
fn action_mapped(&self, action: T) -> Option<&Button>
fn action_mapped(&self, action: T) -> Option<&Button>
Checks if action is mapped and returns an appropriate button