Esempio n. 1
0
 public CapturedInput(VirtualController.Axis axis, bool isPos, ButtonActions.Gesture gesture)
 {
     IsAxisGesture = true;
     Axis          = axis;
     IsPositive    = isPos;
     ButtonGesture = gesture;
 }
Esempio n. 2
0
 public CapturedInput(VirtualController.Axis axis, bool isPos, ButtonActions.Gesture gesture)
 {
     IsAxisGesture = true;
     Axis = axis;
     IsPositive = isPos;
     ButtonGesture = gesture;
 }
Esempio n. 3
0
        void ReplaceGesture(ButtonActions.Gesture gesture)
        {
            var d    = new ActionSelectDialog();
            var slot = (slotMenu.Tag as CapturedInput).Clone();

            slot.ButtonGesture        = gesture;
            d.ActionSelect.MainForm   = mainForm;
            d.ActionSelect.Controller = controller;
            d.ActionSelect.Slot       = slot;

            d.ShowDialog(this.ParentForm);
        }
Esempio n. 4
0
        public InputActionConfig GetGesture(ButtonActions.Gesture g)
        {
            switch (g)
            {
            case ButtonActions.Gesture.Link: return(Link);

            case ButtonActions.Gesture.Tap: return(Tap);

            case ButtonActions.Gesture.DoubleTap: return(DoubleTap);

            case ButtonActions.Gesture.Hold: return(Hold);
            }
            return(null);
        }
Esempio n. 5
0
 public CapturedInput(VirtualController.Button button, ButtonActions.Gesture gesture)
 {
     Button        = button;
     ButtonGesture = gesture;
 }
Esempio n. 6
0
 public CapturedInput(VirtualController.Button button, ButtonActions.Gesture gesture)
 {
     Button = button;
     ButtonGesture = gesture;
 }