Exemple #1
0
        internal RawKeyboard(RawDevice device, iKeyboardLayout layout, iKeyboardHandler handler)
        {
            this.layout  = layout;
            this.handler = handler;
            deviceName   = device.name;

            if (deviceName.isEmpty())
            {
                deviceName = device.productDescription;
            }
            if (deviceName.isEmpty())
            {
                string mfg = device.manufacturer;
                if (mfg.notEmpty())
                {
                    deviceName = $"A keyboard made by { mfg }";
                }
                else
                {
                    deviceName = $"Unidentified { device.bus } keyboard";
                }
            }
        }
Exemple #2
0
 public LayoutTest()
 {
     // layout = new UsEnglishLayout();
     layout = new MontenegrinLayout();
 }