Beispiel #1
0
            public void DevRequestStartTreadmill()
            {
                if (IsOmnitrackOnline())
                {
                    ESystemReplyOperateTreadmill resOperateTreadmillRequest = UserRequestToStartTreadmill();
                    switch (resOperateTreadmillRequest)
                    {
                    case ESystemReplyOperateTreadmill.Result_NotAllowed:
                        if (debugLevel != LogLevel.None)
                        {
                            Debug.Log("Not allowed to send user request to start the Omnideck");
                        }
                        break;

                    case ESystemReplyOperateTreadmill.Result_Enabled_Ok:
                        if (debugLevel != LogLevel.None)
                        {
                            Debug.Log("Sent user request to start the Omnideck treadmill. Treadmill enabled.");
                        }
                        break;
                    }
                }
                else
                {
                    if (debugLevel != LogLevel.None)
                    {
                        Debug.LogError("Unable to send request, not connected to Omnitrack");
                    }
                }
            }
Beispiel #2
0
            // Code in dev, will enable users to disable/enable omnideck upon will
            // ("forced roomscale")
            // ATTN: Subject to change
            public void DevRequestChangeOfOmnideckOperationMode()
            {
                // escape the rest
                return;

                if (Input.GetMouseButtonDown(0))
                {
                    if (IsOmnitrackOnline())
                    {
                        ESystemReplyOperateTreadmill resOperateTreadmillRequest = UserRequestToStopTreadmill();
                        switch (resOperateTreadmillRequest)
                        {
                        case ESystemReplyOperateTreadmill.Result_NotAllowed:
                            if (debugLevel != LogLevel.None)
                            {
                                Debug.Log("Not allowed to send user request to stop the Omnideck");
                            }
                            break;

                        case ESystemReplyOperateTreadmill.Result_Disabled_Ok:
                            if (debugLevel != LogLevel.None)
                            {
                                Debug.Log("Sent user request to stop the Omnideck treadmill. Treadmill disabled.");
                            }
                            break;
                        }
                    }
                    else
                    {
                        if (debugLevel != LogLevel.None)
                        {
                            Debug.LogError("Unable to send request, not connected to Omnitrack");
                        }
                    }
                }

                if (Input.GetMouseButtonDown(1))
                {
                    if (IsOmnitrackOnline())
                    {
                        ESystemReplyOperateTreadmill resOperateTreadmillRequest = UserRequestToStartTreadmill();
                        switch (resOperateTreadmillRequest)
                        {
                        case ESystemReplyOperateTreadmill.Result_NotAllowed:
                            if (debugLevel != LogLevel.None)
                            {
                                Debug.Log("Not allowed to send user request to start the Omnideck");
                            }
                            break;

                        case ESystemReplyOperateTreadmill.Result_Enabled_Ok:
                            if (debugLevel != LogLevel.None)
                            {
                                Debug.Log("Sent user request to start the Omnideck treadmill. Treadmill enabled.");
                            }
                            break;
                        }
                    }
                    else
                    {
                        if (debugLevel != LogLevel.None)
                        {
                            Debug.LogError("Unable to send request, not connected to Omnitrack");
                        }
                    }
                }
            }