예제 #1
0
 internal static KeyboardPacket CreateTestPacket()
 {
     var packet = new KeyboardPacket { IsAvailable = true };
     packet.Data[1] = 2;
     packet.Data[15] = 3;
     return packet;
 }
예제 #2
0
 private void AnalyseKeyboardPacket(KeyboardPacket packet)
 {
     if (packet != null && activeKeyboard != null)
         activeKeyboard.HandleNewPacket(packet);
 }
예제 #3
0
 internal void HandleNewPacket(KeyboardPacket packet)
 {
     IsAvailable = packet.IsAvailable;
     packet.UpdateStatesFromDataBytes(states);
 }