Files
jlibwiiuse/QuickUserGuide.wiki
guilhem.duche 87c7e743e9 Edited wiki page through web user interface.
git-svn-id: http://wiiusej.googlecode.com/svn/wiki@118 ae48ae66-6a45-0410-b38e-211266189506
2008-03-31 19:30:33 +00:00

21 lines
740 B
Plaintext

#labels Featured,Phase-Deploy,wiiusej
#Quick user guide.
=Quick doc=
{{{
1) import wiiusej.jar in your java project.
2) put the 2 dlls files libWiiUseJ.dll and wiiuse.dll at the root of your project (or the two .so files if you are under linux).
Connect your wiimote to your bluetooth stack.
3) In your code : Wiimote[] wiimotes = WiiUseApiManager.getWiimotes(X, true);//x is the number of wiimotes to connect. True : make it rumble the first time you get the wiimotes.
4) Make a class (MyListener) implementing the WiimoteListener interface.
5) wiimote[0].addWiiMoteEventListeners(new MyListener());//register my class as a listener of the first wiimote.
===> MyListener will receive events from the wiimotes is registered on.
}}}