Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

libvive

vivegui

libvive is a library for reading USB data from:

  • VIVE controllers

    • Buttons
    • Gyros
    • Lasers
  • VIVE headset

    • Lasers
    • Gyros?
    • Camera
  • Lighthouse

    • ???

Installation

Dependencies libvive: hidapi

Dependencies vivegui: glfw3, GLU, GLEW

$ make install

Example

int main(int argc, char** argv) {
  struct vive_state vive;
  struct vive_controller *controller;
  int i;

  if (vive_open(&vive)) {
    printf("Could not read from vive controllers\n");
    return 1;
  }

  for (i = 0; i < vive->num_controllers; ++i) {
    controller = &vive->controllers[i];

    printf("smoothed gyro pitch/roll: %f %f\n", 
           controller->pitch_smooth,
           controller->roll_smooth);
  }

  vive_close(&vive);

About

Raw Vive HID/USB parser

Resources

License

Packages

No packages published
You can’t perform that action at this time.