pub fn new(repeat: KeyRepeatConfig, xs: [InputBundle; 2], ys: [InputBundle; 2]) -> Self {
        let x_pos = Button::new(xs[0].clone(), repeat);
        let x_neg = Button::new(xs[1].clone(), repeat);
        let y_pos = Button::new(ys[0].clone(), repeat);
        let y_neg = Button::new(ys[1].clone(), repeat);

        Self {
            x: AxisButton {
                pos: x_pos,
                neg: x_neg,
            },
            y: AxisButton {
                pos: y_pos,
                neg: y_neg,
            },
        }
    }
/// Creates axis from [positive, negative] input bundle in (x, y) axis
///
/// Makes sure that the key repeat configuration is shared among buttons (while the states are
/// not shared).
Creates axis from [positive, negative] input bundle in (x, y) axis
Makes sure that the key repeat configuration is shared among buttons (while the states are
not shared).
Creates axis from [ positive negative ] input bundle in ( x y ) axis Makes sure that the key repeat configuration is shared among buttons ( while the states are not shared ) .
pub fn new(repeat: KeyRepeatConfig, xs: [InputBundle; 2], ys: [InputBundle; 2]) -> Self {
        let x_pos = Button::new(xs[0].clone(), repeat);
        let x_neg = Button::new(xs[1].clone(), repeat);
        let y_pos = Button::new(ys[0].clone(), repeat);
        let y_neg = Button::new(ys[1].clone(), repeat);
        Self {
            x: AxisButton {
                pos: x_pos,
                neg: x_neg,
            },
            y: AxisButton {
                pos: y_pos,
                neg: y_neg,
            },
        }
    }
pub fn new ( repeat : KeyRepeatConfig , xs : [ InputBundle ; 2 ] , ys : [ InputBundle ; 2 ] ) -> Self { let x_pos = Button :: new ( xs [ 0 ] . clone ( ) , repeat ) ; let x_neg = Button :: new ( xs [ 1 ] . clone ( ) , repeat ) ; let y_pos = Button :: new ( ys [ 0 ] . clone ( ) , repeat ) ; let y_neg = Button :: new ( ys [ 1 ] . clone ( ) , repeat ) ; Self { x : AxisButton { pos : x_pos , neg : x_neg , } , y : AxisButton { pos : y_pos , neg : y_neg , } , } }
Creates axis from [positive, negative] input bundle in (x, y) axis
Makes sure that the key repeat configuration is shared among buttons (while the states are
not shared).
Creates axis from [ positive negative ] input bundle in ( x y ) axis Makes sure that the key repeat configuration is shared among buttons ( while the states are not shared ) .
repeat
KeyRepeatConfig
xs
[InputBundle; 2]
ys
[InputBundle; 2]
repeat
KeyRepeatConfig
xs
[InputBundle; 2]
ys
[InputBundle; 2]