Example #1
0
        public string GetKeyPressed()
        {
            Cosmos.System.KeyEvent     k  = Cosmos.System.KeyboardManager.ReadKey();
            Cosmos.System.ConsoleKeyEx ex = k.Key;
            switch (ex.ToString())
            {
            case "A":
            {
                return("A");
            }

            case "B":
            {
                return("B");
            }

            case "C":
            {
                return("C");
            }
            }
            return("0");
        }
Example #2
0
 private static void AddKeyWithShift(uint p, Cosmos.System.ConsoleKeyEx p_3)
 {
     AddKeyWithShift(p, '\0', p_3);
 }
Example #3
0
 private static void AddKeyWithShift(uint p, char p_2, Cosmos.System.ConsoleKeyEx p_3)
 {
     AddKey(p, p_2, p_3);
     AddKey(p << 16, p_2, p_3);
 }
Example #4
0
 private static void AddKey(uint p, char p_2, Cosmos.System.ConsoleKeyEx p_3)
 {
     //keys.Add(new Cosmos.System.KeyMapping(p, p_2, p_3));
     //KeyCount += 1u;
 }