internal void OnApplicationQuit() { for (int i = 0; i < j.Count; ++i) { Joycon jc = j[i]; jc.Detach(); } }
internal void Update() { for (int i = 0; i < j.Count; ++i) { Joycon jc = j[i]; jc.Update(); } }
internal void Start() { for (int i = 0; i < j.Count; ++i) { Console.WriteLine(i); Joycon jc = j[i]; byte LEDs = 0x0; LEDs |= (byte)(0x1 << i); jc.Attach(leds_: LEDs); jc.Begin(); } }
internal void Start() { for (int i = 0; i < j.Count; ++i) { Console.WriteLine(i); Joycon jc = j[i]; byte LEDs = 0x0; LEDs |= (byte)(0x1 << i); jc.Attach(leds_: LEDs); jc.Begin(); } update = new Timer(timerTick); update.Elapsed += Update_Elapsed; update.Start(); }