示例#1
0
 public MouseDragGesture(MouseButtons button)
     : base(false)
 {
     Button = button;
     BlockedInputs.Add(2 + 5 /*Enum.GetValues(typeof(MouseButtons)).Length*/);
     BlockedInputs.Add((int)Button);
 }
示例#2
0
        public KeyCombinationReleased(params Keys[] keys)
            : base(false)
        {
            this.Keys = keys;

            for (int i = 0; i < keys.Length; i++)
            {
                BlockedInputs.Add((int)keys[i]);
            }
        }
示例#3
0
        public KeyCombinationPressed(Keys[] keys, params Keys[] modifiers)
            : base(false)
        {
            this.Keys      = keys;
            this.Modifiers = modifiers;

            for (int i = 0; i < keys.Length; i++)
            {
                BlockedInputs.Add((int)keys[i]);
            }
        }
示例#4
0
 public TriggerMovedGesture(Side trigger)
     : base(false)
 {
     Trigger = trigger;
     BlockedInputs.Add((int)Trigger + 25); //Enum.GetValues(typeof(Buttons)).Length);
 }
示例#5
0
 public ThumbstickMoved(Side thumbstick)
     : base(false)
 {
     Thumbstick = thumbstick;
     BlockedInputs.Add((int)Thumbstick + 25);//Enum.GetValues(typeof(Buttons)).Length);
 }
示例#6
0
 public ButtonPressed(Buttons button)
     : base(false)
 {
     Button = button;
     BlockedInputs.Add((int)Button);
 }
示例#7
0
 public MouseMove()
     : base(false)
 {
     BlockedInputs.Add(2 + 5 /*Enum.GetValues(typeof(MouseButtons)).Length*/);
 }
示例#8
0
 public ScrollWheelMoved()
     : base(false)
 {
     BlockedInputs.Add(1 + 5 /*Enum.(typeof(MouseButtons)).Length*/);
 }