pub fn create_input_binding() -> input::InputBinding<Axis, Button> {
    input::InputBinding::new()
        .bind_key_to_axis(KeyCode::Up, Axis::Vert, true)
        .bind_key_to_axis(KeyCode::Down, Axis::Vert, false)
        .bind_key_to_axis(KeyCode::Left, Axis::Horz, false)
        .bind_key_to_axis(KeyCode::Right, Axis::Horz, true)
        .bind_key_to_button(KeyCode::C, Button::Select)
        .bind_key_to_button(KeyCode::X, Button::Back)
        .bind_key_to_button(KeyCode::Z, Button::Menu)
        .bind_key_to_button(KeyCode::Escape, Button::Quit)
}
/// Create the default keybindings for our input state.
Create the default keybindings for our input state.
Create the default keybindings for our input state .
pub fn create_input_binding() -> input::InputBinding<Axis, Button> {
    input::InputBinding::new()
        .bind_key_to_axis(KeyCode::Up, Axis::Vert, true)
        .bind_key_to_axis(KeyCode::Down, Axis::Vert, false)
        .bind_key_to_axis(KeyCode::Left, Axis::Horz, false)
        .bind_key_to_axis(KeyCode::Right, Axis::Horz, true)
        .bind_key_to_button(KeyCode::C, Button::Select)
        .bind_key_to_button(KeyCode::X, Button::Back)
        .bind_key_to_button(KeyCode::Z, Button::Menu)
        .bind_key_to_button(KeyCode::Escape, Button::Quit)
}
pub fn create_input_binding ( ) -> input :: InputBinding < Axis , Button > { input :: InputBinding :: new ( ) . bind_key_to_axis ( KeyCode :: Up , Axis :: Vert , true ) . bind_key_to_axis ( KeyCode :: Down , Axis :: Vert , false ) . bind_key_to_axis ( KeyCode :: Left , Axis :: Horz , false ) . bind_key_to_axis ( KeyCode :: Right , Axis :: Horz , true ) . bind_key_to_button ( KeyCode :: C , Button :: Select ) . bind_key_to_button ( KeyCode :: X , Button :: Back ) . bind_key_to_button ( KeyCode :: Z , Button :: Menu ) . bind_key_to_button ( KeyCode :: Escape , Button :: Quit ) }
Create the default keybindings for our input state.
Create the default keybindings for our input state .