コード例 #1
0
        public OpenVRInject(RemoteHooking.IContext context, String channelName)
        {
            // Get reference to IPC to host application
            // Note: any methods called or events triggered against _interface will execute in the host process.

            Interface  = RemoteHooking.IpcConnectClient <PSInterface>(channelName);
            RunButton  = Interface.RunButton;
            Hand       = Interface.Hand;
            ButtonType = Interface.ButtonType;
            Interface.Write("Intialized");
        }
コード例 #2
0
        public void ReceivedNewViveBindings(PStrafeButtonType touch, Valve.VR.EVRButtonId button, PStrafeHand hand)
        {
            if (Iface == null)
            {
                return;
            }

            try
            {
                var handNames = Enum.GetNames(typeof(PStrafeHand)).ToList();
                log.Info(touch);
                log.Info(hand);
                log.Info(button);

                Iface.ButtonType = touch;
                Iface.Hand       = hand;
                Iface.RunButton  = button;
            }
            catch (Exception ex)
            {
                throw (ex);
            }
        }