public static AxisKey XboxAxis(XboxAxis axis) { AxisKey ak = new AxisKey(); ak.Type = ControlKeyType.Xbox; ak.xboxAxisType = XboxAxisType.axis; ak.keys.Add(axis.ToString()); ak.changed(); return ak; }
public static AxisKey XboxAxis(XboxAxis axis) { AxisKey ak = new AxisKey(); ak.Type = ControlKeyType.Xbox; ak.xboxAxisType = XboxAxisType.axis; ak.keys.Add(axis.ToString()); ak.changed(); return(ak); }
public static AxisKey PC(KeyCode neg, KeyCode pos) { AxisKey ak = new AxisKey(); ak.Type = ControlKeyType.PC; ak.keys.Add(neg.ToString()); ak.keys.Add(pos.ToString()); ak.changed(); return(ak); }
public static AxisKey XboxDpad(HorVert horintalOrVertical) { AxisKey ak = new AxisKey(); ak.Type = ControlKeyType.Xbox; ak.xboxAxisType = XboxAxisType.dpad; if(horintalOrVertical == HorVert.Horizontal) { ak.keys.Add(XboxDPad.Left.ToString()); ak.keys.Add(XboxDPad.Right.ToString()); } else { ak.keys.Add(XboxDPad.Down.ToString()); ak.keys.Add(XboxDPad.Up.ToString()); } ak.changed(); return ak; }
public static AxisKey XboxDpad(HorVert horintalOrVertical) { AxisKey ak = new AxisKey(); ak.Type = ControlKeyType.Xbox; ak.xboxAxisType = XboxAxisType.dpad; if (horintalOrVertical == HorVert.Horizontal) { ak.keys.Add(XboxDPad.Left.ToString()); ak.keys.Add(XboxDPad.Right.ToString()); } else { ak.keys.Add(XboxDPad.Down.ToString()); ak.keys.Add(XboxDPad.Up.ToString()); } ak.changed(); return(ak); }
public static AxisKey PC(KeyCode neg, KeyCode pos) { AxisKey ak = new AxisKey(); ak.Type = ControlKeyType.PC; ak.keys.Add(neg.ToString()); ak.keys.Add(pos.ToString()); ak.changed(); return ak; }