Exemple #1
0
        public void Init()
        {
            // TODO
            // Face buttons

            // TODO
            // Bumpers

            // Trigger
            left_trigger = new InputAxis(
                config.left_trigger_axis_name
                );
            right_trigger = new InputAxis(
                config.right_trigger_axis_name
                );

            // Sticks
            left_stick = new InputTwoAxis(
                new InputAxis(
                    config.left_stick_x_axis_name,
                    config.inverse_left_stick_x
                    ),
                new InputAxis(
                    config.left_stick_y_axis_name,
                    config.inverse_left_stick_y
                    )
                );

            right_stick = new InputTwoAxis(
                new InputAxis(
                    config.right_stick_x_axis_name,
                    config.inverse_right_stick_x
                    ),
                new InputAxis(
                    config.right_stick_y_axis_name,
                    config.inverse_right_stick_y
                    )
                );
        }
Exemple #2
0
 public InputTwoAxis(InputAxis x_axis, InputAxis y_axis)
 {
     this.x = x_axis;
     this.y = y_axis;
 }