Giter Club home page Giter Club logo

riftlibrary's Introduction

Oculus Rift support for Android apps

This libary is currently a side project and supports reading sensor data from the Oculus Rift

Setup

Add this to your manifest:

<uses-feature android:name="android.hardware.usb.host" />

You also need to modify your activity in AndroidManifest.xml and add the following intent filter:

<intent-filter>
	<action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" />
</intent-filter>
<meta-data android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"
	android:resource="@xml/device_filter" />

I also recommend setting android:launchMode="singleTask"

Then put a file device_filter.xml in res/xml/ with the following content:

<?xml version="1.0" encoding="utf-8"?>
<resources>
	<usb-device vendor-id="10291" product-id="0001" />
</resources>

As the libary currently sets android:minSdkVersion="12" so should your application.

Usage

TBD

Screenshots

Version 0.2

Compatible Devices

  • Nexus 10
  • Nexus 7 (obviously no HDMI output)
  • Asus Transformer Prime
  • ... theoretically every device with USB host and HDMI out should work with the Rift (let me know what you are using)

Debugging

Most devices will only have a single USB port so you can't debug over USB and use the Rift at the same time. Luckily you can switch to TCP/IP with the following commands while using USB connection(replace IP with your device IP):

adb tcpip 5555
adb connect 192.168.1.2:5555

You can now connect the Rift instead and still use Eclipse to push new APKs and debug the app.

Switch back to USB with adb usb

riftlibrary's People

Contributors

sebastianherp avatar

Stargazers

Vladimir Vainer avatar  avatar Sridhar Uyyala avatar  avatar Stefan avatar Umberto Vollono avatar Rob Eastham avatar  avatar Jaeman An avatar Enrico Ros avatar Jon Perl avatar S. Neuhaus avatar Gary Davies avatar  avatar Scott Elcomb avatar jonek avatar Rhea Myers avatar Marcelo Oliveira avatar

Watchers

Enrico Ros avatar  avatar jonek avatar Simon Burfield avatar  avatar Nick McVroom avatar  avatar

Forkers

angels-group

riftlibrary's Issues

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.