WorldViz User Forum

WorldViz User Forum (
-   Vizard (
-   -   Wii nunchuck connection problem (

g.vannan 03-11-2015 06:52 AM

Wii nunchuck connection problem
I connected wii mote and able to make walkthrough in cave but not able to connect nunchuck...:confused:.need suggestion $$$
is any possible way to get acceleration value of wii mote?

Jeff 03-11-2015 07:46 AM

Does the following show the nunchuk is connected?


import viz

#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'

You can get the acceleration. The wiimote plug-in page documents all the available commands.

g.vannan 03-15-2015 11:17 PM

Yes ,code is working
How to connect
Nunchuck joystick

Jeff 03-16-2015 06:42 AM

Try the following:


import viz
import vizact

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

nunchuk = wiimote.nunchuk

def printNunchukPosition():
        print nunchuk.getPosition()

All times are GMT -7. The time now is 12:57 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Copyright 2002-2018 WorldViz LLC