Exemple #1
0
 public void UpdateVirtualTouchpad(serializableBTRemoteTouchPad s_bt)
 {
     this.touchPad.isActive         = s_bt.touchActive;
     this.touchPad.button.isPressed = s_bt.touchButton;
     this.touchPad.xAxis.value      = s_bt.touchPos.x;
     this.touchPad.yAxis.value      = s_bt.touchPos.y;
     this.touchPad.up.isActive      = s_bt.upButton;
     this.touchPad.down.isActive    = s_bt.downButton;
     this.touchPad.left.isActive    = s_bt.leftButton;
     this.touchPad.right.isActive   = s_bt.rightButton;
 }
Exemple #2
0
        void UpdateBTRemote()
        {
            if (RemoteManager.Instance.connectedRemote != null)
            {
                serializableBTRemote sBTRemote = RemoteManager.Instance.connectedRemote;
                SendToEditor(MiraConnectionMessageIds.BTRemoteMsgId, sBTRemote);

                if (btFrameCounter < btSendRate)
                {
                    btFrameCounter += 1;
                }
                else
                {
                    serializableBTRemoteButtons  sBTRemoteButtons  = RemoteManager.Instance.connectedRemote;
                    serializableBTRemoteTouchPad sBTRemoteTouchPad = RemoteManager.Instance.connectedRemote;

                    SendToEditor(MiraConnectionMessageIds.BTRemoteButtonsMsgId, sBTRemoteButtons);
                    SendToEditor(MiraConnectionMessageIds.BTRemoteTouchPadMsgId, sBTRemoteTouchPad);

                    btFrameCounter = 0;
                }
            }
        }