Skip to content

polygraphene/FreePIEVRController

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FreePIEVRController

FreePIE input plugin for Daydream and GearVR controller

Installation

  1. Copy FreePIEVRController.dll on "C:\Program Files (x86)\FreePIE\plugins"
  2. (if required) Right click FreePIEVRController.dll and open property and then unblock file

Sample

c = 0
alvr.buttons[c][alvr.Id("trackpad_click")] = alvr.buttons[c][alvr.Id("trackpad_click")] or vrcontroller[c].click
alvr.buttons[c][alvr.Id("trackpad_touch")] = alvr.buttons[c][alvr.Id("trackpad_touch")] or vrcontroller[c].touch
alvr.buttons[c][alvr.Id("trigger")] = alvr.buttons[c][alvr.Id("trigger")] or vrcontroller[c].trigger
alvr.trackpad[c][0] = vrcontroller[c].trackpad[0]
alvr.trackpad[c][1] = vrcontroller[c].trackpad[1]
alvr.buttons[c][alvr.Id("system")] = vrcontroller[c].volup
alvr.buttons[c][alvr.Id("grip")] = vrcontroller[c].voldown

alvr.trigger[c] = 1.0 if alvr.buttons[c][alvr.Id("trigger")] else 0.0
  
alvr.override_controller_position = True
  
alvr.controller_position[c][0] = vrcontroller[c].position[0]
alvr.controller_position[c][1] = vrcontroller[c].position[1]
alvr.controller_position[c][2] = vrcontroller[c].position[2]

test.py

withalvr.py

Known issue

  • Drift in GearVR Controller

About

FreePIE input plugin for Daydream and GearVR controller

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages