private static void Button(object sender, WiiButtonEventArgs args) { var buffer = new byte[12]; CopyInt(ref buffer, 0, 0); CopyInt(ref buffer, args.Id, 4); CopyInt(ref buffer, args.Button, 8); //Console.WriteLine("{0}: {1}", args.Id, args.Button); client.Client.Send(buffer); }
static void Button(object sender, WiiButtonEventArgs args) { Console.WriteLine("{0}: {1}", args.Id, args.Button); }