Thread: Oculus setZoom
View Single Post
  #1  
Old 10-08-2014, 11:23 AM
mshukun mshukun is offline
Member
 
Join Date: Jan 2013
Posts: 32
Oculus setZoom

It appears that there are more Oculus related modules in Vizard 5 and I truly appreciate newly added functions. However, I encountered a problem that not to be able to zoom in and out using Xbox controller. It was working with the Vizard 5 beta version, but the code no longer work with the Vizard 5 (the code shown below). I appreciate your help and thank you in advance.


Code:
self.zoom = 1
def setZoom(self):
		if joy.isButtonDown(6):
			self.zoom = self.zoom - 0.001 
			
		elif joy.isButtonDown(5):
			self.zoom = self.zoom + 0.001 
		hmd.setZoom(self.zoom)
vizact.ontimer(0, self.setZoom)
Reply With Quote