View Single Post
  #4  
Old 03-16-2015, 06:42 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,466
Try the following:

Code:
import viz
import vizact
viz.go()

wii = viz.add('wiimote.dle') 
wiimote = wii.addWiimote() 

nunchuk = wiimote.nunchuk

def printNunchukPosition():
	print nunchuk.getPosition()
	
vizact.ontimer(0,printNunchukPosition)
Reply With Quote