Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 1.34 KB

README.md

File metadata and controls

34 lines (25 loc) · 1.34 KB

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