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?