public CapturedInput(VirtualController.Axis axis, bool isPos, ButtonActions.Gesture gesture) { IsAxisGesture = true; Axis = axis; IsPositive = isPos; ButtonGesture = gesture; }
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); }
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); }
public CapturedInput(VirtualController.Button button, ButtonActions.Gesture gesture) { Button = button; ButtonGesture = gesture; }