示例#1
0
        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;
            }
        }
示例#2
0
 protected override void handleLed(eLed led, int value)
 {
     Console.WriteLine("LED: {0} {1} {2}", led, value, time);
 }
示例#3
0
 protected override void handleLed(eLed led, int value)
 {
     layout.updateState(led, value);
 }
示例#4
0
 /// <summary>Handle EV_LED events</summary>
 protected virtual void handleLed(eLed led, int value)
 {
 }