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

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

Code:
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