View Single Post
Old 04-12-2017, 02:38 AM
Jeff Jeff is offline
WorldViz Team Member
Join Date: Aug 2008
Posts: 2,467
First get a handle to the remote controller:

hmd = oculus.Rift()
remote = hmd.getRemoteController()
Then in the function that updates the cursor check the remote controller button states:

if remote.isButtonDown(oculus.BUTTON_REMOTE_UP):
	pos[1] += inc
if remote.isButtonDown(oculus.BUTTON_REMOTE_LEFT):
	pos[0] -= inc
if remote.isButtonDown(oculus.BUTTON_REMOTE_DOWN):
	pos[1] -= inc
if remote.isButtonDown(oculus.BUTTON_REMOTE_RIGHT):
	pos[0] += inc
Does this work for you?
Reply With Quote