Esempio n. 1
0
        public static string getCharForScancode(int iScancode, LangKeybdlayout langKdb)
        {
            string s = "n/a";

            scancode[] scancodes = getScanCodes(langKdb);
            foreach (scancode scn in scancodes)
            {
                if (scn._scancode == iScancode)
                {
                    s = scn._keyChar;
                    break;
                }
            }
            return(s);
        }
Esempio n. 2
0
        public static scancode[] getScanCodes(LangKeybdlayout layout)
        {
            switch (layout)
            {
            case LangKeybdlayout.US:
                return(scancodesUS);

            case LangKeybdlayout.DE:
                return(scancodesDE);

            case LangKeybdlayout.IT:
                return(scancodesIT);

            case LangKeybdlayout.FR:
                return(scancodesFR);

            default:
                return(scancodesUS);
            }
        }