https://github.com/raggi/ohmd
ohmd - a Go wrapper for OpenHMD
https://github.com/raggi/ohmd
go headset ohmd tracking vr
Last synced: over 1 year ago
JSON representation
ohmd - a Go wrapper for OpenHMD
- Host: GitHub
- URL: https://github.com/raggi/ohmd
- Owner: raggi
- License: bsl-1.0
- Created: 2014-02-09T02:47:39.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-02-09T02:48:43.000Z (over 12 years ago)
- Last Synced: 2025-03-20T17:55:30.730Z (over 1 year ago)
- Topics: go, headset, ohmd, tracking, vr
- Language: Go
- Size: 117 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
ohmd - an OpenHMD wrapper for go
A quick example:
c := ohmd.New()
c.Probe()
d, _ := c.ListOpenDevice(0)
for {
c.Update()
q, _ := d.Getf(ohmd.ROTATION_QUAT)
fmt.Printf("%v\n", q)
time.Sleep(1 / 60 * time.Second)
}
See the following locations for documentation:
http://godoc.org/github.com/raggi/ohmd
http://openhmd.net/
See ohmd_test.go for an Example:
https://github.com/raggi/ohmd/blob/master/ohmd_test.go