Coder Social home page Coder Social logo

satoshirobatofujimoto / hololens-xbox-controller Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 17 KB

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.

Home Page: http://assetload.com/r/qh/Holo-Lens-Xbox-Controller

C# 100.00%

hololens-xbox-controller's Introduction

HoloLens Xbox Controller Plugin

hololens controller

Requirements:

HoloLens headset

Xbox One wireless controller

Windows 10(Creators Update would be best for Mixed Reality development).

Unity v5.6.1f1 or later.

Visual Studio 2015 or later.

Using an Xbox One Controller with Unity on Windows 10

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

hololens-xbox-controller's People

Watchers

James Cloos avatar Satoshi Gachi Fujimoto avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.