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

            case 1:
                AltClickComplete?.Invoke(this, GetSimleEventArg());
                break;
            }
        }
コード例 #2
0
 public JoystickButtonEventArguments(JoystickButtonUpEventArgs args, Input input) : base(args, input)
 {
     Button = args.Button;
 }
コード例 #3
0
 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);
 }