Ejemplo n.º 1
0
 public static void SetKeyLayout(ScanMapBase ScanMap)
 {
     if (ScanMap != null)
     {
         _scanMap = ScanMap;
     }
 }
Ejemplo n.º 2
0
 public static void SetKeyLayout(ScanMapBase aScanMap)
 {
     if (aScanMap != null)
     {
         mScanMap = aScanMap;
     }
 }
Ejemplo n.º 3
0
        /// <summary>
        /// Asks user for choice of Keymap and subsequently returns chosen keymap.
        /// </summary>
        /// <returns></returns>
        public static Sys.ScanMapBase QueryUserForKeymap()
        {
            Console.WriteLine("Would you rather use a US, DE or FR keymap? \n[ I'm sorry we don't yet support more than those :( ]");
            string choice = "";

            Sys.ScanMapBase keymap = null;

            while (keymap is null)
            {
                choice = Console.ReadLine();
                switch (choice.ToUpper())
                {
                case "US":
                    keymap = new US_Standard();
                    break;

                case "DE":
                    keymap = new DE_Standard();
                    break;

                case "FR":
                    keymap = new FR_Standard();
                    break;

                default:
                    Console.WriteLine("Choice not recognized, please choose either of those: {US, DE, FR}");
                    break;
                }
            }

            return(keymap);
        }
Ejemplo n.º 4
0
 protected void SetKeyboardScanMap(ScanMapBase ScanMap)
 {
     KeyboardManager.SetKeyLayout(ScanMap);
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Change keyboard layout. Initially set to US_Standard.
 /// <para>
 /// Currently available:
 /// <list type="bullet">
 /// <item>US_Standard.</item>
 /// <item>FR_Standard.</item>
 /// <item>DE_Standard.</item>
 /// <item>TR_StandardQ.</item>
 /// </list>
 /// </para>
 /// </summary>
 /// <param name="scanMap">A key mapping.</param>
 public static void ChangeKeyLayout(ScanMapBase scanMap)
 {
     KeyboardManager.SetKeyLayout(scanMap);
 }