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"; } } }
public LayoutTest() { // layout = new UsEnglishLayout(); layout = new MontenegrinLayout(); }