![]() |
|
#1
|
|||
|
|||
|
I connected wii mote and able to make walkthrough in cave but not able to connect nunchuck...
.need suggestion $$$is any possible way to get acceleration value of wii mote? |
|
#2
|
|||
|
|||
|
Does the following show the nunchuk is connected?
Code:
import viz
viz.go()
#Add wiimote extension
wii = viz.add('wiimote.dle')
#Connect to first available wiimote
wiimote = wii.addWiimote()
#Rumble wiimote for 0.5 seconds when nunchuk is connected
def onConnect(e):
if e.extension == wii.EXT_NUNCHUK:
print 'nunchuk connected'
e.object.setRumble(True,0.5)
viz.callback(wii.EXT_CONNECT_EVENT,onConnect)
|
|
#3
|
|||
|
|||
|
Yes ,code is working
How to connect Nunchuck joystick |
|
#4
|
|||
|
|||
|
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)
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Oculus Rift connection problem | mshukun | Vizard | 1 | 10-01-2014 12:15 PM |
| PPT Mocap and Motion Builder Connection Problem | hxphan | Precision Position Tracker (PPT) | 3 | 02-22-2011 11:01 AM |
| Vizard problem | mizutani_jun | Vizard | 4 | 01-09-2011 03:39 PM |
| Immersion Cyberglove connection problem | gwfassociates | Vizard | 1 | 05-17-2009 03:29 PM |
| problem with female animations | vmonkey | Vizard | 1 | 10-07-2005 10:36 AM |