finallyfunctional / openvr-driver-example

This repository is an example on how to implement an Open VR driver that sends joystick and/or trackpad input to Open VR.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Open VR Driver Example

This repository is an example on how to implement an Open VR driver that sends joystick and/or trackpad input to Open VR. This input will move the game character. This sample is simply hard coded to constantly send forward joystick and trackpad input to Open VR, causing the game character to constantly move foward just like if you were using a regular VR controller and holding the joystick/trackpad forward. You can take this example and replace the hardcoded move foward code with code that actually gets output from a device, such as a VR treadmill, VR shoes like mine, VR shoes like CyberShoes, or VR sensors similar to Kat Loco.

I created this sample and wrote lots of documentation in this repository's wiki because I found the existing OpenVR documentation and driver sample to be lacking. It was hard to create this sample initially, not knowing anything about OpenVR. I had to slowly piece together over many hours information from the documentation, sample, and other samples and Open VR implementations I found online to make this driver sample that simply moves the character forward. My hope is that this sample and the documentation I provide here will make it easier for complete beginners to start using Open VR.

About

This repository is an example on how to implement an Open VR driver that sends joystick and/or trackpad input to Open VR.

License:MIT License


Languages

Language:C++ 47.3%Language:C# 35.8%Language:C 16.9%