示例#1
0
        private void HandleJoystickAxisMove(JoystickAxisMoveEventArgs args)
        {
            var d = ApplyDeadZoone(args.Position);

            if (d != 0)
            {
                Trace.WriteLine(args.Button + " " + d);
            }
        }
 public JoystickAxisMoveEventArguments(JoystickAxisMoveEventArgs args, Input input) : base(args, input)
 {
     Axis     = args.Button;
     Position = args.Position;
 }
 private void OnJoystickAxisMove(JoystickAxisMoveEventArgs args)
 {
     _joystickAxisMove?.Invoke(this, new JoystickAxisMoveEventArguments(args, _input));
 }
示例#4
0
 protected JoystickEventArguments(JoystickAxisMoveEventArgs args, Input input)
 {
     JoystickID = args.JoystickID;
     GetExtraInfo(input);
 }