public static void SetKeys(ChotaikoKey Key1, ChotaikoKey Key2, ChotaikoKey Key3, ChotaikoKey Key4) { Keys = new ChotaikoKey[4]; Keys[0] = Key1; Keys[1] = Key2; Keys[2] = Key3; Keys[3] = Key4; }
static void ChotaikoOnKeyDown(object sender, KeyboardKeyEventArgs e) { if (!e.IsRepeat) { ChotaikoKey l = new ChotaikoKey(); ChotaikoGlobalContext.OnPress(l); } }
/// <summary> /// Processes key input /// </summary> /// <param name="Key">Key which has been pressed</param> /// <returns>ID of note who ate key press</returns> public int OnPress(ChotaikoKey Key) { UpdateOffset(); foreach (IChotaikoGameObject GameObject in OnScreenObjects) { if (GameObject.OnPress(this.CurrentOffset, this.Chart.ChartInfo)) { return(GameObject.GetID()); } } return(-1); }
public static int OnPress(ChotaikoKey Key) { return(CurrentGameContext.OnPress(Key)); }