Пример #1
0
 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;
 }
Пример #2
0
 static void ChotaikoOnKeyDown(object sender, KeyboardKeyEventArgs e)
 {
     if (!e.IsRepeat)
     {
         ChotaikoKey l = new ChotaikoKey();
         ChotaikoGlobalContext.OnPress(l);
     }
 }
Пример #3
0
        /// <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);
        }
Пример #4
0
 public static int OnPress(ChotaikoKey Key)
 {
     return(CurrentGameContext.OnPress(Key));
 }