Exemplo n.º 1
0
 public void Disconnect()
 {
     if (IsConnected)
     {
         Dispose();
         WiimoteManager.Disconnect(this);
     }
 }
Exemplo n.º 2
0
        private int WriteReport(byte[] buff)
        {
            // Automatically do this so we don't have to do it for every report
            buff[1] |= GetRumbleBit();
            OutputReport type = (OutputReport)buff[0];

            return(WiimoteManager.QueueWriteRequest(this, buff));
        }
 private void RaiseExtensionChanged(ExtensionType type, bool inserted)
 {
     WiimoteManager.RaiseExtensionChanged(this, type, inserted);
     ExtensionChanged?.Invoke(this, new WiimoteExtensionEventArgs(this, type, inserted));
 }
 private void RaiseStateChanged()
 {
     WiimoteManager.RaiseStateChanged(this);
     StateChanged?.Invoke(this, new WiimoteStateEventArgs(this));
 }
        // Called by Wiimote

        private void RaiseWiimoteException(Exception ex)
        {
            WiimoteManager.RaiseWiimoteException(this, ex);
            WiimoteException?.Invoke(this, new WiimoteExceptionEventArgs(this, ex));
        }