mikeroyal / HoloLens-Xbox-Controller

Plugin that pairs your Xbox One S Wireless Controller to your HoloLens Mixed Reality headset(using Unity on Windows 10). Mixed Reality combines the best aspects of both VR and AR.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HoloLens Xbox Controller Plugin

hololens controller

hololens

Requirements:

HoloLens headset

Xbox One wireless controller

Windows 10(Build 1709 or later).

Unity 2017.3 or later.

Visual Studio 2017 or later.

Developing for VR, AR, and Mixed Reality

Microsoft Mixed Reality Toolkit

Mixed Reality Academy

Windows Dev Center for Mixed Reality

Unity for VR and AR

Unity's Input Manager for Windows Mixed Reality motion controllers

Develop Mixed Reality Apps for Holographic Technology

Unity development overview for Windows Mixed Reality Apps

Windows Mixed Reality Developer Forum

Windows Mixed Reality Unity Forum

Instructions:

  1. Pair your Xbox One S Wireless Controller to your HoloLens using the Bluetooth section of HoloLens Settings and following the instructions of your controller.

  2. Make sure your Unity WSA project has the following capabilities set:

    InternetClient
    
    HumanInterfaceDevice
    
  3. Set up the script you are going to use for input as follows. (You can follow the example of the scene “ExampleScene” and the script “ControllerInputExample” to see how to use the code)

    a. Add the using directive “using HoloLensXboxController;”

    b. Add a private member “private ControllerInput controllerInput;”

    c. Instantiate the controllerInput object in the Start() method: ie “controllerInput = new ControllerInput(0, 0.19f);”. The first parameter of the constructor is the number, starting at zero, of the controller you want to follow. The second parameter is the default “dead” value; meaning all stick readings less than this value will be set to 0.0.

    d. Make sure to call “controllerInput.Update();” in your MonoBehaviour Update() method.

  4. Build and deploy your application to HoloLens.

  5. Note: these libraries will only handle Input on the HoloLens. They will not handle input in the Unity Editor. You will need to handle that separately.

Unity Build Settings and VR Support for HoloLens

virtualrealitysupported unitybuildsettingscapabilities

About

Plugin that pairs your Xbox One S Wireless Controller to your HoloLens Mixed Reality headset(using Unity on Windows 10). Mixed Reality combines the best aspects of both VR and AR.

License:MIT License


Languages

Language:C# 100.0%