/// <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(); } }
/// <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; }
/// <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; }
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; } }