void iKeyboardLayout.updateState(eLed led, int value) { switch (led) { case eLed.CapsLock: if (0 != value) { state |= eKeyboardState.CapsLock; } else { state &= (~eKeyboardState.CapsLock); } return; case eLed.NumLock: if (0 != value) { state |= eKeyboardState.NumLock; } else { state &= ~eKeyboardState.NumLock; } return; } }
protected override void handleLed(eLed led, int value) { Console.WriteLine("LED: {0} {1} {2}", led, value, time); }
protected override void handleLed(eLed led, int value) { layout.updateState(led, value); }
/// <summary>Handle EV_LED events</summary> protected virtual void handleLed(eLed led, int value) { }