internal static KeyboardPacket CreateTestPacket()
 {
     var packet = new KeyboardPacket { IsAvailable = true };
     packet.Data[1] = 2;
     packet.Data[15] = 3;
     return packet;
 }
 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);
 }