示例#1
0
        private void HandleJoystickButtonUp(JoystickButtonUpEventArgs args)
        {
            switch (args.Button)
            {
            case 0:
                ClickComplete?.Invoke(this, GetSimleEventArg());
                break;

            case 1:
                AltClickComplete?.Invoke(this, GetSimleEventArg());
                break;
            }
        }
 public JoystickButtonEventArguments(JoystickButtonUpEventArgs args, Input input) : base(args, input)
 {
     Button = args.Button;
 }
 private void OnJoystickButtonUp(JoystickButtonUpEventArgs args)
 {
     _joystickButtonUp?.Invoke(this, new JoystickButtonUpEventArguments(args, _input));
 }
示例#4
0
 protected JoystickEventArguments(JoystickButtonUpEventArgs args, Input input)
 {
     JoystickID = args.JoystickID;
     GetExtraInfo(input);
 }