pub fn bind_scancode_to_button(mut self, keycode: Key, button: Buttons) -> Self {
        self.bindings.insert(
            InputType::ScanCode(keycode),
            InputEffect::Button(button, AxisDirection::Positive),
        );
        self
    }
/// Adds a key binding connecting the given scancode (layout-independent key identifier) to the
/// given logical button.
Adds a key binding connecting the given scancode (layout-independent key identifier) to the
given logical button.
Adds a key binding connecting the given scancode ( layout - independent key identifier ) to the given logical button .
pub fn bind_scancode_to_button(mut self, keycode: Key, button: Buttons) -> Self {
        self.bindings.insert(
            InputType::ScanCode(keycode),
            InputEffect::Button(button, AxisDirection::Positive),
        );
        self
    }
pub fn bind_scancode_to_button ( mut self , keycode : Key , button : Buttons ) -> Self { self . bindings . insert ( InputType :: ScanCode ( keycode ) , InputEffect :: Button ( button , AxisDirection :: Positive ) , ) ; self }
Adds a key binding connecting the given scancode (layout-independent key identifier) to the
given logical button.
Adds a key binding connecting the given scancode ( layout - independent key identifier ) to the given logical button .
mut self
keycode
Key
button
Buttons
mut self
keycode
Key
button
Buttons