Exemplo n.º 1
0
 /// <summary>
 /// Initialize the sixense driver and allocate the controllers.
 /// </summary>
 void Start()
 {
     SixensePlugin.sixenseInit();
     for (int i = 0; i < MAX_CONTROLLERS; i++)
     {
         m_Controllers[i] = new Controller();
     }
 }
Exemplo n.º 2
0
    /// <summary>
    /// Initialize the sixense driver and allocate the controllers.
    /// </summary>
    void Start()
    {
        SixensePlugin.sixenseInit();

        for (int i = 0; i < MAX_CONTROLLERS; i++)
        {
            m_Controllers[i] = new Controller();
        }

        // don't let the mobile device sleep
        Screen.sleepTimeout = SleepTimeout.NeverSleep;
    }
Exemplo n.º 3
0
    /// <summary>
    /// Initialize the sixense driver and allocate the controllers.
    /// </summary>
    void Awake()
    {
        SixensePlugin.sixenseInit();

        for (int i = 0; i < MAX_CONTROLLERS; i++)
        {
            m_Controllers[i] = new Controller();
        }

        Controllers[0].HandBind = SixenseHands.RIGHT;
        Controllers[1].HandBind = SixenseHands.LEFT;
    }
Exemplo n.º 4
0
        public static void Start()
        {
            status = Status.Unavailable;

            SixensePlugin.sixenseInit();
            for (int i = 0; i < MAX_CONTROLLERS; i++)
            {
                m_Controllers[i] = new Controller();
            }
            dllPresent = true;

            started = true;

            bool baseConnected = SixensePlugin.sixenseIsBaseConnected(0) > 0;

            if (dllPresent && baseConnected)
            {
                status = Status.Present;
            }
        }