From 158cd5cf7492f7a0e59efda03725186f9a9b788e Mon Sep 17 00:00:00 2001 From: "guilhem.duche" Date: Tue, 5 Feb 2008 14:55:29 +0000 Subject: [PATCH 01/38] Created wiki page through web user interface. git-svn-id: http://wiiusej.googlecode.com/svn/wiki@2 ae48ae66-6a45-0410-b38e-211266189506 --- Documentation.wiki | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Documentation.wiki diff --git a/Documentation.wiki b/Documentation.wiki new file mode 100644 index 0000000..0bf65fe --- /dev/null +++ b/Documentation.wiki @@ -0,0 +1,12 @@ +#summary One-sentence summary of this page. + += Introduction = +WiiuseJ documentation + + += Details = + +Add your content here. Format your content with: + * Text in *bold* or _italic_ + * Headings, paragraphs, and lists + * Automatic links to other wiki pages \ No newline at end of file From 9f9a19707f6713c385257e08c9dc33dc7d3a565c Mon Sep 17 00:00:00 2001 From: "guilhem.duche" Date: Mon, 10 Mar 2008 23:45:57 +0000 Subject: [PATCH 02/38] Created wiki page through web user interface. git-svn-id: http://wiiusej.googlecode.com/svn/wiki@88 ae48ae66-6a45-0410-b38e-211266189506 --- TestWiiuseJ.wiki | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 TestWiiuseJ.wiki diff --git a/TestWiiuseJ.wiki b/TestWiiuseJ.wiki new file mode 100644 index 0000000..2ae6753 --- /dev/null +++ b/TestWiiuseJ.wiki @@ -0,0 +1,15 @@ +#How to test wiiuseJ quickly + + +1) Download WiiUseJ 0.1 Windows.zip + + +2) Unzip all the files in the same folder (ex: c:\temp) + + +3) Connect the wiimote to your bluetooth stack + + +4) Double Click wiiusej.jar ====> the WiiuseJ Test GUI should appear and your wiimote vibrate. + +If double click doesn't work : click on Start -> execute -> cmd (enter) -> cd c:\temp (enter) -> java -jar wiiusej.jar (enter). From 27f25c238e7f7a4decc5d3d160fee833d1a1e3b2 Mon Sep 17 00:00:00 2001 From: "guilhem.duche" Date: Mon, 10 Mar 2008 23:47:42 +0000 Subject: [PATCH 03/38] Edited wiki page through web user interface. git-svn-id: http://wiiusej.googlecode.com/svn/wiki@89 ae48ae66-6a45-0410-b38e-211266189506 --- Documentation.wiki | 31 ++++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/Documentation.wiki b/Documentation.wiki index 0bf65fe..e3bac2a 100644 --- a/Documentation.wiki +++ b/Documentation.wiki @@ -1,12 +1,25 @@ -#summary One-sentence summary of this page. - -= Introduction = -WiiuseJ documentation +#User documentation + + +To be updated very soon !!!! + +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. +Connect your wiimote to your bluetooth stack. + +3) In your code : Wiimote[] wiimotes = WiiUseApiManager.getWiimotes(X);//x is the number of wiimotes to connect. + +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. -= Details = -Add your content here. Format your content with: - * Text in *bold* or _italic_ - * Headings, paragraphs, and lists - * Automatic links to other wiki pages \ No newline at end of file From 5af2c3af4bc04e6110da74d9a78c09b0f88a936a Mon Sep 17 00:00:00 2001 From: "guilhem.duche" Date: Mon, 10 Mar 2008 23:49:52 +0000 Subject: [PATCH 04/38] Edited wiki page through web user interface. git-svn-id: http://wiiusej.googlecode.com/svn/wiki@90 ae48ae66-6a45-0410-b38e-211266189506 --- Documentation.wiki | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Documentation.wiki b/Documentation.wiki index e3bac2a..a06d9b3 100644 --- a/Documentation.wiki +++ b/Documentation.wiki @@ -6,6 +6,8 @@ To be updated very soon !!!! 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. @@ -21,5 +23,4 @@ Connect your wiimote to your bluetooth stack. ===> MyListener will receive events from the wiimotes is registered on. - - +}}} From 6d4f0144e4573b5955e8b2d8d5748b360bdee564 Mon Sep 17 00:00:00 2001 From: "guilhem.duche" Date: Mon, 10 Mar 2008 23:50:52 +0000 Subject: [PATCH 05/38] Edited wiki page through web user interface. git-svn-id: http://wiiusej.googlecode.com/svn/wiki@91 ae48ae66-6a45-0410-b38e-211266189506 --- Documentation.wiki | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation.wiki b/Documentation.wiki index a06d9b3..72f5aa5 100644 --- a/Documentation.wiki +++ b/Documentation.wiki @@ -1,3 +1,4 @@ +#labels Featured,Phase-Deploy #User documentation @@ -23,4 +24,4 @@ Connect your wiimote to your bluetooth stack. ===> MyListener will receive events from the wiimotes is registered on. -}}} +}}} \ No newline at end of file From 1acb907e218286dd1a4d7cfdc7f80efef0c8b774 Mon Sep 17 00:00:00 2001 From: "guilhem.duche" Date: Mon, 10 Mar 2008 23:51:24 +0000 Subject: [PATCH 06/38] Edited wiki page through web user interface. git-svn-id: http://wiiusej.googlecode.com/svn/wiki@92 ae48ae66-6a45-0410-b38e-211266189506 --- TestWiiuseJ.wiki | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/TestWiiuseJ.wiki b/TestWiiuseJ.wiki index 2ae6753..fc5c5cf 100644 --- a/TestWiiuseJ.wiki +++ b/TestWiiuseJ.wiki @@ -1,3 +1,4 @@ +#labels Featured,Phase-Deploy #How to test wiiuseJ quickly @@ -12,4 +13,4 @@ 4) Double Click wiiusej.jar ====> the WiiuseJ Test GUI should appear and your wiimote vibrate. -If double click doesn't work : click on Start -> execute -> cmd (enter) -> cd c:\temp (enter) -> java -jar wiiusej.jar (enter). +If double click doesn't work : click on Start -> execute -> cmd (enter) -> cd c:\temp (enter) -> java -jar wiiusej.jar (enter). \ No newline at end of file From f45bd87f4abd09f8ae6edd58cfad2652103c6b37 Mon Sep 17 00:00:00 2001 From: "guilhem.duche" Date: Mon, 10 Mar 2008 23:51:44 +0000 Subject: [PATCH 07/38] Edited wiki page through web user interface. git-svn-id: http://wiiusej.googlecode.com/svn/wiki@93 ae48ae66-6a45-0410-b38e-211266189506 --- TestWiiuseJ.wiki | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TestWiiuseJ.wiki b/TestWiiuseJ.wiki index fc5c5cf..e10ca29 100644 --- a/TestWiiuseJ.wiki +++ b/TestWiiuseJ.wiki @@ -1,5 +1,5 @@ #labels Featured,Phase-Deploy -#How to test wiiuseJ quickly +#How to test wiiuseJ quickly. 1) Download WiiUseJ 0.1 Windows.zip From 03d245772f2f2eb7d613a0558e1e6d0ed6961fa6 Mon Sep 17 00:00:00 2001 From: "guilhem.duche" Date: Mon, 10 Mar 2008 23:51:59 +0000 Subject: [PATCH 08/38] Edited wiki page through web user interface. git-svn-id: http://wiiusej.googlecode.com/svn/wiki@94 ae48ae66-6a45-0410-b38e-211266189506 --- Documentation.wiki | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation.wiki b/Documentation.wiki index 72f5aa5..9f90d75 100644 --- a/Documentation.wiki +++ b/Documentation.wiki @@ -1,5 +1,5 @@ #labels Featured,Phase-Deploy -#User documentation +#User documentation. To be updated very soon !!!! From 34b7101fbee4d9858f1e1d90327476aba3c83e41 Mon Sep 17 00:00:00 2001 From: "guilhem.duche" Date: Mon, 10 Mar 2008 23:52:54 +0000 Subject: [PATCH 09/38] Edited wiki page through web user interface. git-svn-id: http://wiiusej.googlecode.com/svn/wiki@95 ae48ae66-6a45-0410-b38e-211266189506 --- Documentation.wiki | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Documentation.wiki b/Documentation.wiki index 9f90d75..4ef685a 100644 --- a/Documentation.wiki +++ b/Documentation.wiki @@ -1,11 +1,10 @@ #labels Featured,Phase-Deploy #User documentation. +=Quick doc= To be updated very soon !!!! -Quick doc : - {{{ From 87a8e4e304b66742f804d49254e59b21a0450fb9 Mon Sep 17 00:00:00 2001 From: "guilhem.duche" Date: Mon, 10 Mar 2008 23:53:20 +0000 Subject: [PATCH 10/38] Edited wiki page through web user interface. git-svn-id: http://wiiusej.googlecode.com/svn/wiki@96 ae48ae66-6a45-0410-b38e-211266189506 --- TestWiiuseJ.wiki | 1 + 1 file changed, 1 insertion(+) diff --git a/TestWiiuseJ.wiki b/TestWiiuseJ.wiki index e10ca29..b3f6e8c 100644 --- a/TestWiiuseJ.wiki +++ b/TestWiiuseJ.wiki @@ -1,6 +1,7 @@ #labels Featured,Phase-Deploy #How to test wiiuseJ quickly. +=Step by step test= 1) Download WiiUseJ 0.1 Windows.zip From cbcaec77b035e365d68d25ccc625a57baf73ac13 Mon Sep 17 00:00:00 2001 From: "guilhem.duche" Date: Thu, 13 Mar 2008 22:24:46 +0000 Subject: [PATCH 11/38] Edited wiki page through web user interface. git-svn-id: http://wiiusej.googlecode.com/svn/wiki@97 ae48ae66-6a45-0410-b38e-211266189506 --- Documentation.wiki | 37 +++++++++++++++++++++++++------------ 1 file changed, 25 insertions(+), 12 deletions(-) diff --git a/Documentation.wiki b/Documentation.wiki index 4ef685a..5ea321d 100644 --- a/Documentation.wiki +++ b/Documentation.wiki @@ -1,26 +1,39 @@ #labels Featured,Phase-Deploy #User documentation. -=Quick doc= -To be updated very soon !!!! +=Detailed documentation= + + +WiiuseJ is very easy to use. +You have very few things to do get info from your wiimote(s). + +First make a class (for example MyClass) and implements WiimoteListener with it. +For example, in the following example, each method implemented receives the differents event Types : ButtonsEvent, IREvent, MotionSensingEvent, StatusEvent and DisconnectionEvent. In this case in each method we only display it. {{{ +public class MyClass implements WiimoteListener{ -1) import wiiusej.jar in your java project. + public void onButtonsEvent(ButtonsEvent arg0) { + System.out.println(arg0); + } -2) put the 2 dlls files libWiiUseJ.dll and wiiuse.dll at the root of your project. -Connect your wiimote to your bluetooth stack. + public void onIrEvent(IREvent arg0) { + System.out.println(arg0); + } -3) In your code : Wiimote[] wiimotes = WiiUseApiManager.getWiimotes(X);//x is the number of wiimotes to connect. + public void onMotionSensingEvent(MotionSensingEvent arg0) { + System.out.println(arg0); + } -4) Make a class (MyListener) implementing the WiimoteListener interface. + public void onStatusEvent(StatusEvent arg0) { + System.out.println(arg0); + } -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. + public void onDisconnectionEvent(DisconnectionEvent arg0) { + System.out.println(arg0); + } +} }}} \ No newline at end of file From 73aa3479e5ec852540243f8d680fb43045e50cd0 Mon Sep 17 00:00:00 2001 From: "guilhem.duche" Date: Thu, 13 Mar 2008 22:26:00 +0000 Subject: [PATCH 12/38] Created wiki page through web user interface. git-svn-id: http://wiiusej.googlecode.com/svn/wiki@98 ae48ae66-6a45-0410-b38e-211266189506 --- QuickUserGuide.wiki | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 QuickUserGuide.wiki diff --git a/QuickUserGuide.wiki b/QuickUserGuide.wiki new file mode 100644 index 0000000..28ff607 --- /dev/null +++ b/QuickUserGuide.wiki @@ -0,0 +1,21 @@ +#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. +Connect your wiimote to your bluetooth stack. + +3) In your code : Wiimote[] wiimotes = WiiUseApiManager.getWiimotes(X);//x is the number of wiimotes to connect. + +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. + +}}} \ No newline at end of file From ca414298e8a30429fe0b5e503018578b06c256fd Mon Sep 17 00:00:00 2001 From: "guilhem.duche" Date: Thu, 13 Mar 2008 22:48:00 +0000 Subject: [PATCH 13/38] Edited wiki page through web user interface. git-svn-id: http://wiiusej.googlecode.com/svn/wiki@99 ae48ae66-6a45-0410-b38e-211266189506 --- Documentation.wiki | 44 ++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 42 insertions(+), 2 deletions(-) diff --git a/Documentation.wiki b/Documentation.wiki index 5ea321d..6c1545c 100644 --- a/Documentation.wiki +++ b/Documentation.wiki @@ -8,9 +8,10 @@ WiiuseJ is very easy to use. You have very few things to do get info from your wiimote(s). +First : make a project. Import wiiusej.jar and in it put the 2 dlls files at the root of your project. -First make a class (for example MyClass) and implements WiimoteListener with it. -For example, in the following example, each method implemented receives the differents event Types : ButtonsEvent, IREvent, MotionSensingEvent, StatusEvent and DisconnectionEvent. In this case in each method we only display it. +Then make a class ( for example MyClass ) and implements WiimoteListener with it. +For example, in the following example, each method implemented receives the differents event Types : ButtonsEvent, IREvent, MotionSensingEvent, StatusEvent and DisconnectionEvent (check Javadoc to see what infos you get from each event type). In this case in each method we only display the event received. {{{ public class MyClass implements WiimoteListener{ @@ -36,4 +37,43 @@ public class MyClass implements WiimoteListener{ } } +}}} + + +Next you can make a main. Like this : + + +{{{ + public static void main(String[] args) { + Wiimote[] wiimotes = WiiUseApiManager.getWiimotes(1); + Wiimote wiimote = wiimotes[0]; + wiimote.activateIRTRacking(); + wiimote.activateMotionSensing(); + wiimote.addWiiMoteEventListeners(new MyClass()); + } +}}} + +Here you ask to try to connect to 1 wiimote. You can ask for more if more are connected. It returns you an array with the connected wiimote. Then you can manipulate each wiimote and activate IR tracking, motion tracking and set up other parameters if you want... Check javadoc for more details. + +{{{ +wiimote.addWiiMoteEventListeners(new MyClass()); +}}} + +This line permits you to set an instance of MyClass as a listener of the wiimote. +When events from this wiimote occur they are sent to every WiimoteListener. Here there is only one, an instance of MyClass. + +If you launch this program it will display the content of every events. + + + +An example of use of ButtonsEvent can be this one. If we want to end our program you can shutdown the WiiuseManager(Object that manages all wiimotes) when the button A is pressed. +Example: + +{{{ +public void onButtonsEvent(ButtonsEvent arg0) { + System.out.println(arg0); + if (arg0.isButtonAPressed()){ + WiiUseApiManager.getInstance().shutdown(); + } + } }}} \ No newline at end of file From 970e54bc2824693cce7e2d720f02b1ef1995642d Mon Sep 17 00:00:00 2001 From: "guilhem.duche" Date: Thu, 13 Mar 2008 22:48:38 +0000 Subject: [PATCH 14/38] Edited wiki page through web user interface. git-svn-id: http://wiiusej.googlecode.com/svn/wiki@100 ae48ae66-6a45-0410-b38e-211266189506 --- Documentation.wiki | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Documentation.wiki b/Documentation.wiki index 6c1545c..7fb7460 100644 --- a/Documentation.wiki +++ b/Documentation.wiki @@ -6,13 +6,16 @@ =Detailed documentation= -WiiuseJ is very easy to use. -You have very few things to do get info from your wiimote(s). -First : make a project. Import wiiusej.jar and in it put the 2 dlls files at the root of your project. +WiiuseJ is very easy to use. You have very few things to do get info from your wiimote(s). + + +First, make a project. Import wiiusej.jar and in it put the 2 dlls files at the root of your project. + Then make a class ( for example MyClass ) and implements WiimoteListener with it. For example, in the following example, each method implemented receives the differents event Types : ButtonsEvent, IREvent, MotionSensingEvent, StatusEvent and DisconnectionEvent (check Javadoc to see what infos you get from each event type). In this case in each method we only display the event received. + {{{ public class MyClass implements WiimoteListener{ @@ -53,15 +56,19 @@ Next you can make a main. Like this : } }}} + Here you ask to try to connect to 1 wiimote. You can ask for more if more are connected. It returns you an array with the connected wiimote. Then you can manipulate each wiimote and activate IR tracking, motion tracking and set up other parameters if you want... Check javadoc for more details. + {{{ wiimote.addWiiMoteEventListeners(new MyClass()); }}} + This line permits you to set an instance of MyClass as a listener of the wiimote. When events from this wiimote occur they are sent to every WiimoteListener. Here there is only one, an instance of MyClass. + If you launch this program it will display the content of every events. From 8c2bd434617d5bc1338b8347be6bbadc7ac466f5 Mon Sep 17 00:00:00 2001 From: "guilhem.duche" Date: Thu, 13 Mar 2008 22:50:13 +0000 Subject: [PATCH 15/38] Edited wiki page through web user interface. git-svn-id: http://wiiusej.googlecode.com/svn/wiki@101 ae48ae66-6a45-0410-b38e-211266189506 --- Documentation.wiki | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation.wiki b/Documentation.wiki index 7fb7460..7d15e3a 100644 --- a/Documentation.wiki +++ b/Documentation.wiki @@ -12,7 +12,7 @@ WiiuseJ is very easy to use. You have very few things to do get info from your w First, make a project. Import wiiusej.jar and in it put the 2 dlls files at the root of your project. -Then make a class ( for example MyClass ) and implements WiimoteListener with it. +Then make a class (for example MyClass) implementing WiimoteListener with it. For example, in the following example, each method implemented receives the differents event Types : ButtonsEvent, IREvent, MotionSensingEvent, StatusEvent and DisconnectionEvent (check Javadoc to see what infos you get from each event type). In this case in each method we only display the event received. From b68286a23c1040119f13ab542dd5fb6d8497e52e Mon Sep 17 00:00:00 2001 From: "guilhem.duche" Date: Thu, 13 Mar 2008 22:53:31 +0000 Subject: [PATCH 16/38] Created wiki page through web user interface. git-svn-id: http://wiiusej.googlecode.com/svn/wiki@102 ae48ae66-6a45-0410-b38e-211266189506 --- ButtonsEvent.wiki | 95 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 95 insertions(+) create mode 100644 ButtonsEvent.wiki diff --git a/ButtonsEvent.wiki b/ButtonsEvent.wiki new file mode 100644 index 0000000..55cdfd3 --- /dev/null +++ b/ButtonsEvent.wiki @@ -0,0 +1,95 @@ +#summary One-sentence summary of this page. += ButtonsEvent methods summary= + +Method Summary + + boolean isButtonAHeld() + + boolean isButtonAJustPressed() + + boolean isButtonAJustReleased() + + boolean isButtonAPressed() + + boolean isButtonBHeld() + + boolean isButtonBJustPressed() + + boolean isButtonBJustReleased() + + boolean isButtonBPressed() + + boolean isButtonDownHeld() + + boolean isButtonDownJustPressed() + + boolean isButtonDownJustReleased() + + boolean isButtonDownPressed() + + boolean isButtonHomeHeld() + + boolean isButtonHomeJustPressed() + + boolean isButtonHomeJustReleased() + + boolean isButtonHomePressed() + + boolean isButtonLeftHeld() + + boolean isButtonLeftJustPressed() + + boolean isButtonLeftJustReleased() + + boolean isButtonLeftPressed() + + boolean isButtonMinusHeld() + + boolean isButtonMinusJustPressed() + + boolean isButtonMinusJustReleased() + + boolean isButtonMinusPressed() + + boolean isButtonOneHeld() + + boolean isButtonOneJustPressed() + + boolean isButtonOneJustReleased() + + boolean isButtonOnePressed() + + boolean isButtonPlusHeld() + + boolean isButtonPlusJustPressed() + + boolean isButtonPlusJustReleased() + + boolean isButtonPlusPressed() + + boolean isButtonRightHeld() + + boolean isButtonRightJustPressed() + + boolean isButtonRightJustReleased() + + boolean isButtonRightPressed() + + boolean isButtonTwoHeld() + + boolean isButtonTwoJustPressed() + + boolean isButtonTwoJustReleased() + + boolean isButtonTwoPressed() + + boolean isButtonUpHeld() + + boolean isButtonUpJustPressed() + + boolean isButtonUpJustReleased() + + boolean isButtonUpPressed() + + java.lang.String toString() + \ No newline at end of file From 74a17b86e084d0050da9bcb4b2b55e92eb73bf3a Mon Sep 17 00:00:00 2001 From: "guilhem.duche" Date: Thu, 13 Mar 2008 22:54:58 +0000 Subject: [PATCH 17/38] Created wiki page through web user interface. git-svn-id: http://wiiusej.googlecode.com/svn/wiki@103 ae48ae66-6a45-0410-b38e-211266189506 --- MotionSensingEvent.wiki | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 MotionSensingEvent.wiki diff --git a/MotionSensingEvent.wiki b/MotionSensingEvent.wiki new file mode 100644 index 0000000..867e274 --- /dev/null +++ b/MotionSensingEvent.wiki @@ -0,0 +1,28 @@ +#summary One-sentence summary of this page. + += MotionSensingEvent Methods Summary= + int getAccelerationThreshold() + Get acceleration threshold. + + float getAlphaSmoothing() + Get alpha smoothing. + + GForce getGforce() + Get the gravity force. + + Orientation getOrientation() + + + float getOrientationThreshold() + Get orientation threshold. + + RawAcceleration getRawAcceleration() + Get the raw acceleration. + + boolean isSmoothingActive() + Tell if the option SMOOTHING is activated. + +private void setOrientationAndGforce(float r, float p, float ya, float x, float y, float z, short xx, short yy, short zz) + Set orientation, gravity force and raw acceleration. + + java.lang.String toString() \ No newline at end of file From 906f7076c8497ca7d8ed2722b1f1fcce79c9b469 Mon Sep 17 00:00:00 2001 From: "guilhem.duche" Date: Thu, 13 Mar 2008 22:55:11 +0000 Subject: [PATCH 18/38] Deleting wiki page MotionSensingEvent. git-svn-id: http://wiiusej.googlecode.com/svn/wiki@104 ae48ae66-6a45-0410-b38e-211266189506 --- MotionSensingEvent.wiki | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 MotionSensingEvent.wiki diff --git a/MotionSensingEvent.wiki b/MotionSensingEvent.wiki deleted file mode 100644 index 867e274..0000000 --- a/MotionSensingEvent.wiki +++ /dev/null @@ -1,28 +0,0 @@ -#summary One-sentence summary of this page. - -= MotionSensingEvent Methods Summary= - int getAccelerationThreshold() - Get acceleration threshold. - - float getAlphaSmoothing() - Get alpha smoothing. - - GForce getGforce() - Get the gravity force. - - Orientation getOrientation() - - - float getOrientationThreshold() - Get orientation threshold. - - RawAcceleration getRawAcceleration() - Get the raw acceleration. - - boolean isSmoothingActive() - Tell if the option SMOOTHING is activated. - -private void setOrientationAndGforce(float r, float p, float ya, float x, float y, float z, short xx, short yy, short zz) - Set orientation, gravity force and raw acceleration. - - java.lang.String toString() \ No newline at end of file From 0559ffc93f1bc67dc5b9876714316a0bacee450d Mon Sep 17 00:00:00 2001 From: "guilhem.duche" Date: Thu, 13 Mar 2008 22:55:22 +0000 Subject: [PATCH 19/38] Deleting wiki page ButtonsEvent. git-svn-id: http://wiiusej.googlecode.com/svn/wiki@105 ae48ae66-6a45-0410-b38e-211266189506 --- ButtonsEvent.wiki | 95 ----------------------------------------------- 1 file changed, 95 deletions(-) delete mode 100644 ButtonsEvent.wiki diff --git a/ButtonsEvent.wiki b/ButtonsEvent.wiki deleted file mode 100644 index 55cdfd3..0000000 --- a/ButtonsEvent.wiki +++ /dev/null @@ -1,95 +0,0 @@ -#summary One-sentence summary of this page. -= ButtonsEvent methods summary= - -Method Summary - - boolean isButtonAHeld() - - boolean isButtonAJustPressed() - - boolean isButtonAJustReleased() - - boolean isButtonAPressed() - - boolean isButtonBHeld() - - boolean isButtonBJustPressed() - - boolean isButtonBJustReleased() - - boolean isButtonBPressed() - - boolean isButtonDownHeld() - - boolean isButtonDownJustPressed() - - boolean isButtonDownJustReleased() - - boolean isButtonDownPressed() - - boolean isButtonHomeHeld() - - boolean isButtonHomeJustPressed() - - boolean isButtonHomeJustReleased() - - boolean isButtonHomePressed() - - boolean isButtonLeftHeld() - - boolean isButtonLeftJustPressed() - - boolean isButtonLeftJustReleased() - - boolean isButtonLeftPressed() - - boolean isButtonMinusHeld() - - boolean isButtonMinusJustPressed() - - boolean isButtonMinusJustReleased() - - boolean isButtonMinusPressed() - - boolean isButtonOneHeld() - - boolean isButtonOneJustPressed() - - boolean isButtonOneJustReleased() - - boolean isButtonOnePressed() - - boolean isButtonPlusHeld() - - boolean isButtonPlusJustPressed() - - boolean isButtonPlusJustReleased() - - boolean isButtonPlusPressed() - - boolean isButtonRightHeld() - - boolean isButtonRightJustPressed() - - boolean isButtonRightJustReleased() - - boolean isButtonRightPressed() - - boolean isButtonTwoHeld() - - boolean isButtonTwoJustPressed() - - boolean isButtonTwoJustReleased() - - boolean isButtonTwoPressed() - - boolean isButtonUpHeld() - - boolean isButtonUpJustPressed() - - boolean isButtonUpJustReleased() - - boolean isButtonUpPressed() - - java.lang.String toString() - \ No newline at end of file From d8ee9036b02358d1264f000a8608a5fb0c26f2b6 Mon Sep 17 00:00:00 2001 From: "guilhem.duche" Date: Thu, 13 Mar 2008 22:55:38 +0000 Subject: [PATCH 20/38] Edited wiki page through web user interface. git-svn-id: http://wiiusej.googlecode.com/svn/wiki@106 ae48ae66-6a45-0410-b38e-211266189506 --- Documentation.wiki | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation.wiki b/Documentation.wiki index 7d15e3a..eb9c1b4 100644 --- a/Documentation.wiki +++ b/Documentation.wiki @@ -13,7 +13,7 @@ First, make a project. Import wiiusej.jar and in it put the 2 dlls files at the Then make a class (for example MyClass) implementing WiimoteListener with it. -For example, in the following example, each method implemented receives the differents event Types : ButtonsEvent, IREvent, MotionSensingEvent, StatusEvent and DisconnectionEvent (check Javadoc to see what infos you get from each event type). In this case in each method we only display the event received. +For example, in the following example, each method implemented receives the differents event Types : ButtonsEvent , IREvent , MotionSensingEvent , StatusEvent and DisconnectionEvent (check Javadoc to see what infos you get from each event type). In this case in each method we only display the event received. {{{ From 8cfcc2afbc8d524ec6e8401956ff83a577998a47 Mon Sep 17 00:00:00 2001 From: "guilhem.duche" Date: Thu, 13 Mar 2008 22:59:01 +0000 Subject: [PATCH 21/38] Edited wiki page through web user interface. git-svn-id: http://wiiusej.googlecode.com/svn/wiki@107 ae48ae66-6a45-0410-b38e-211266189506 --- Documentation.wiki | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation.wiki b/Documentation.wiki index eb9c1b4..7324094 100644 --- a/Documentation.wiki +++ b/Documentation.wiki @@ -83,4 +83,6 @@ public void onButtonsEvent(ButtonsEvent arg0) { WiiUseApiManager.getInstance().shutdown(); } } -}}} \ No newline at end of file +}}} + +This sample app can be downloaded in the download section. It is a Netbeans project. \ No newline at end of file From eb72910bb19685e74910dbf0c7d1199a656d784d Mon Sep 17 00:00:00 2001 From: "guilhem.duche" Date: Mon, 31 Mar 2008 19:24:31 +0000 Subject: [PATCH 22/38] Edited wiki page through web user interface. git-svn-id: http://wiiusej.googlecode.com/svn/wiki@115 ae48ae66-6a45-0410-b38e-211266189506 --- Documentation.wiki | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation.wiki b/Documentation.wiki index 7324094..b53aaf1 100644 --- a/Documentation.wiki +++ b/Documentation.wiki @@ -48,7 +48,7 @@ Next you can make a main. Like this : {{{ public static void main(String[] args) { - Wiimote[] wiimotes = WiiUseApiManager.getWiimotes(1); + Wiimote[] wiimotes = WiiUseApiManager.getWiimotes(1, true); Wiimote wiimote = wiimotes[0]; wiimote.activateIRTRacking(); wiimote.activateMotionSensing(); @@ -57,7 +57,7 @@ Next you can make a main. Like this : }}} -Here you ask to try to connect to 1 wiimote. You can ask for more if more are connected. It returns you an array with the connected wiimote. Then you can manipulate each wiimote and activate IR tracking, motion tracking and set up other parameters if you want... Check javadoc for more details. +Here you ask to try to connect to 1 wiimote (and make it rumble, the first time you call this method). You can ask for more if more are connected. It returns you an array with the connected wiimote. Then you can manipulate each wiimote and activate IR tracking, motion tracking and set up other parameters if you want... Check javadoc for more details. {{{ From 33c6c047bf3658232d45ba0ed9e09fc8a3ae0470 Mon Sep 17 00:00:00 2001 From: "guilhem.duche" Date: Mon, 31 Mar 2008 19:25:08 +0000 Subject: [PATCH 23/38] Edited wiki page through web user interface. git-svn-id: http://wiiusej.googlecode.com/svn/wiki@116 ae48ae66-6a45-0410-b38e-211266189506 --- QuickUserGuide.wiki | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/QuickUserGuide.wiki b/QuickUserGuide.wiki index 28ff607..99ea123 100644 --- a/QuickUserGuide.wiki +++ b/QuickUserGuide.wiki @@ -10,7 +10,7 @@ 2) put the 2 dlls files libWiiUseJ.dll and wiiuse.dll at the root of your project. Connect your wiimote to your bluetooth stack. -3) In your code : Wiimote[] wiimotes = WiiUseApiManager.getWiimotes(X);//x is the number of wiimotes to connect. +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. From f2436c45be9f42f34a8f88783328a754ca144ab6 Mon Sep 17 00:00:00 2001 From: "guilhem.duche" Date: Mon, 31 Mar 2008 19:29:54 +0000 Subject: [PATCH 24/38] Edited wiki page through web user interface. git-svn-id: http://wiiusej.googlecode.com/svn/wiki@117 ae48ae66-6a45-0410-b38e-211266189506 --- TestWiiuseJ.wiki | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TestWiiuseJ.wiki b/TestWiiuseJ.wiki index b3f6e8c..c1b2090 100644 --- a/TestWiiuseJ.wiki +++ b/TestWiiuseJ.wiki @@ -3,7 +3,7 @@ =Step by step test= -1) Download WiiUseJ 0.1 Windows.zip +1) Download WiiUseJ 0.11.zip 2) Unzip all the files in the same folder (ex: c:\temp) From 87c7e743e955dbd05dd9926d7cc13d8eb74308be Mon Sep 17 00:00:00 2001 From: "guilhem.duche" Date: Mon, 31 Mar 2008 19:30:33 +0000 Subject: [PATCH 25/38] Edited wiki page through web user interface. git-svn-id: http://wiiusej.googlecode.com/svn/wiki@118 ae48ae66-6a45-0410-b38e-211266189506 --- QuickUserGuide.wiki | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/QuickUserGuide.wiki b/QuickUserGuide.wiki index 99ea123..bd421d7 100644 --- a/QuickUserGuide.wiki +++ b/QuickUserGuide.wiki @@ -7,7 +7,7 @@ 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. +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. From e9637d447ff8cd66157278b22af045c3a3eb3661 Mon Sep 17 00:00:00 2001 From: "guilhem.duche" Date: Mon, 31 Mar 2008 19:31:38 +0000 Subject: [PATCH 26/38] Edited wiki page through web user interface. git-svn-id: http://wiiusej.googlecode.com/svn/wiki@119 ae48ae66-6a45-0410-b38e-211266189506 --- Documentation.wiki | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation.wiki b/Documentation.wiki index b53aaf1..d42befd 100644 --- a/Documentation.wiki +++ b/Documentation.wiki @@ -9,7 +9,8 @@ WiiuseJ is very easy to use. You have very few things to do get info from your wiimote(s). -First, make a project. Import wiiusej.jar and in it put the 2 dlls files at the root of your project. +First, make a project. Import wiiusej.jar and put the 2 dlls files at the root of your project (or the two .so files if you are under linux). + Then make a class (for example MyClass) implementing WiimoteListener with it. From 8a6e8cc90eefa8d25b5cf39e2f3f69acf7e8047e Mon Sep 17 00:00:00 2001 From: "vincent.juhel" Date: Mon, 26 May 2008 19:56:57 +0000 Subject: [PATCH 27/38] Created wiki page through web user interface. git-svn-id: http://wiiusej.googlecode.com/svn/wiki@150 ae48ae66-6a45-0410-b38e-211266189506 --- CompileWiiusejOnLinux.wiki | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 CompileWiiusejOnLinux.wiki diff --git a/CompileWiiusejOnLinux.wiki b/CompileWiiusejOnLinux.wiki new file mode 100644 index 0000000..b1ae2f9 --- /dev/null +++ b/CompileWiiusejOnLinux.wiki @@ -0,0 +1,29 @@ +#summary Compile Wiiusej C part on linux + +Page not finished yet! + += Introduction = + +You need to get `libwiiuse.so` compiled before trying to compile Wiiusej library. + += Wiiuse library = + +# First, download according version of Wiiuse (for WiiuseJ v0.12, download Wiiuse v0.12). +http://sourceforge.net/project/showfiles.php?group_id=187194 + +# Second, compile the Wiiuse + +{{{ +make +}}} + + += Wiiusej library = + +{{{ +gcc -shared -fPIC -o libWiiuseJ.so -Wall -L. -lwiiuse -I/home/vincent/jdk1.6.0_05/include -I/home/vincent/jdk1.6.0_05/include/linux wiiusej_WiiUseApi.c +}}} + += Launch on linux = + +Put both libs `libwiiuse.so` and `libWiiuseJ.so` in the folder of `wiiusej.jar`. From 56e6a9f2ed3a568ee8278df561c630a302a837ba Mon Sep 17 00:00:00 2001 From: "vincent.juhel" Date: Mon, 26 May 2008 20:04:32 +0000 Subject: [PATCH 28/38] Edited wiki page through web user interface. git-svn-id: http://wiiusej.googlecode.com/svn/wiki@151 ae48ae66-6a45-0410-b38e-211266189506 --- CompileWiiusejOnLinux.wiki | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/CompileWiiusejOnLinux.wiki b/CompileWiiusejOnLinux.wiki index b1ae2f9..63117ae 100644 --- a/CompileWiiusejOnLinux.wiki +++ b/CompileWiiusejOnLinux.wiki @@ -3,20 +3,23 @@ Page not finished yet! = Introduction = +What packages you need installed: libc-dev and libbluetooth-dev +You need Java 6 jdk installed, to get the jni interface. You need to get `libwiiuse.so` compiled before trying to compile Wiiusej library. = Wiiuse library = -# First, download according version of Wiiuse (for WiiuseJ v0.12, download Wiiuse v0.12). -http://sourceforge.net/project/showfiles.php?group_id=187194 - -# Second, compile the Wiiuse + # First, [http://sourceforge.net/project/showfiles.php?group_id=187194 download according version of Wiiuse] (for WiiuseJ v0.12, download Wiiuse v0.12). + # Second, compile the Wiiuse {{{ make }}} +{{{ +make install +}}} = Wiiusej library = @@ -26,4 +29,4 @@ gcc -shared -fPIC -o libWiiuseJ.so -Wall -L. -lwiiuse -I/home/vincent/jdk1.6.0_0 = Launch on linux = -Put both libs `libwiiuse.so` and `libWiiuseJ.so` in the folder of `wiiusej.jar`. +Put both libs `libwiiuse.so` and `libWiiuseJ.so` in the folder of `wiiusej.jar`. \ No newline at end of file From 796f68c38f8b253f0fe935302bfd458258f610f1 Mon Sep 17 00:00:00 2001 From: "vincent.juhel" Date: Mon, 26 May 2008 20:20:42 +0000 Subject: [PATCH 29/38] Edited wiki page through web user interface. git-svn-id: http://wiiusej.googlecode.com/svn/wiki@152 ae48ae66-6a45-0410-b38e-211266189506 --- CompileWiiusejOnLinux.wiki | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/CompileWiiusejOnLinux.wiki b/CompileWiiusejOnLinux.wiki index 63117ae..0f7a75b 100644 --- a/CompileWiiusejOnLinux.wiki +++ b/CompileWiiusejOnLinux.wiki @@ -3,7 +3,9 @@ Page not finished yet! = Introduction = -What packages you need installed: libc-dev and libbluetooth-dev + +What packages you need installed: libc-dev, libbluetooth-dev, xlibmesa-gl-dev, libglu1-mesa-dev, libsdl. + You need Java 6 jdk installed, to get the jni interface. You need to get `libwiiuse.so` compiled before trying to compile Wiiusej library. @@ -11,17 +13,17 @@ You need to get `libwiiuse.so` compiled before trying to compile Wiiusej library = Wiiuse library = # First, [http://sourceforge.net/project/showfiles.php?group_id=187194 download according version of Wiiuse] (for WiiuseJ v0.12, download Wiiuse v0.12). - # Second, compile the Wiiuse + # Second, compile the Wiiuse lib `libwiiuse.so` {{{ make -}}} - -{{{ make install }}} +Here, if you did not install the sdl library, you may get a bug. The library is well-compiled anyway. + = Wiiusej library = +''Don't forget to replace my jdk folder by yours'' {{{ gcc -shared -fPIC -o libWiiuseJ.so -Wall -L. -lwiiuse -I/home/vincent/jdk1.6.0_05/include -I/home/vincent/jdk1.6.0_05/include/linux wiiusej_WiiUseApi.c @@ -29,4 +31,9 @@ gcc -shared -fPIC -o libWiiuseJ.so -Wall -L. -lwiiuse -I/home/vincent/jdk1.6.0_0 = Launch on linux = -Put both libs `libwiiuse.so` and `libWiiuseJ.so` in the folder of `wiiusej.jar`. \ No newline at end of file +Put both libs `libwiiuse.so` and `libWiiuseJ.so` in the folder of `wiiusej.jar`. + +Now launch +{{{ +LD_LIBRARY_PATH=. ~/jdk1.6.0_05/bin/java -Djava.library.path=. -jar wiiusej.jar +}}} \ No newline at end of file From b888b11b4a9a4d1b1d76b52a77f472467ef579bf Mon Sep 17 00:00:00 2001 From: "vincent.juhel" Date: Mon, 26 May 2008 20:30:31 +0000 Subject: [PATCH 30/38] Edited wiki page through web user interface. git-svn-id: http://wiiusej.googlecode.com/svn/wiki@154 ae48ae66-6a45-0410-b38e-211266189506 --- CompileWiiusejOnLinux.wiki | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/CompileWiiusejOnLinux.wiki b/CompileWiiusejOnLinux.wiki index 0f7a75b..7fe30ed 100644 --- a/CompileWiiusejOnLinux.wiki +++ b/CompileWiiusejOnLinux.wiki @@ -1,12 +1,13 @@ #summary Compile Wiiusej C part on linux -Page not finished yet! +Very light summary on how I managed to compile Wiiusej on linux. +Contact the mailing list if you face a bug! = Introduction = What packages you need installed: libc-dev, libbluetooth-dev, xlibmesa-gl-dev, libglu1-mesa-dev, libsdl. -You need Java 6 jdk installed, to get the jni interface. +You need also Java 6 jdk installed, to get the jni interface. You need to get `libwiiuse.so` compiled before trying to compile Wiiusej library. @@ -23,6 +24,8 @@ make install Here, if you did not install the sdl library, you may get a bug. The library is well-compiled anyway. = Wiiusej library = +Move the `libwiiuse.so` compiled in the src directory of WiiUseJC. + ''Don't forget to replace my jdk folder by yours'' {{{ @@ -35,5 +38,13 @@ Put both libs `libwiiuse.so` and `libWiiuseJ.so` in the folder of `wiiusej.jar`. Now launch {{{ -LD_LIBRARY_PATH=. ~/jdk1.6.0_05/bin/java -Djava.library.path=. -jar wiiusej.jar +LD_LIBRARY_PATH=. java -Djava.library.path=. -jar wiiusej.jar +wiiuse v0.12 loaded. + By: Michael Laforest + http://wiiuse.net http://wiiuse.sf.net +[INFO] Found 1 bluetooth device(s). +[INFO] Found wiimote (00:1B:7A:35:55:F6) [id 1]. +[INFO] Connected to wiimote [id 1]. +... +window is opening }}} \ No newline at end of file From 8bcd909e3020cb1b99522edacf1d17d3bbc308fc Mon Sep 17 00:00:00 2001 From: "guilhem.duche" Date: Mon, 26 May 2008 20:32:47 +0000 Subject: [PATCH 31/38] Edited wiki page through web user interface. git-svn-id: http://wiiusej.googlecode.com/svn/wiki@155 ae48ae66-6a45-0410-b38e-211266189506 --- CompileWiiusejOnLinux.wiki | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CompileWiiusejOnLinux.wiki b/CompileWiiusejOnLinux.wiki index 7fe30ed..cd712ae 100644 --- a/CompileWiiusejOnLinux.wiki +++ b/CompileWiiusejOnLinux.wiki @@ -35,7 +35,7 @@ gcc -shared -fPIC -o libWiiuseJ.so -Wall -L. -lwiiuse -I/home/vincent/jdk1.6.0_0 = Launch on linux = Put both libs `libwiiuse.so` and `libWiiuseJ.so` in the folder of `wiiusej.jar`. - +Put your wiimote in discovery mode by clicking on the buttons 1 and 2 in the mean time. Now launch {{{ LD_LIBRARY_PATH=. java -Djava.library.path=. -jar wiiusej.jar From 50036e24fb3633cf445b81bfd5adace45888c559 Mon Sep 17 00:00:00 2001 From: "guilhem.duche" Date: Sun, 1 Jun 2008 14:29:17 +0000 Subject: [PATCH 32/38] Edited wiki page through web user interface. git-svn-id: http://wiiusej.googlecode.com/svn/wiki@160 ae48ae66-6a45-0410-b38e-211266189506 --- TestWiiuseJ.wiki | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/TestWiiuseJ.wiki b/TestWiiuseJ.wiki index c1b2090..c932763 100644 --- a/TestWiiuseJ.wiki +++ b/TestWiiuseJ.wiki @@ -2,14 +2,16 @@ #How to test wiiuseJ quickly. =Step by step test= +0) Make sure you hava Java 1.6 installed on you computer. -1) Download WiiUseJ 0.11.zip +1) Download WiiUseJ 0.12.zip 2) Unzip all the files in the same folder (ex: c:\temp) -3) Connect the wiimote to your bluetooth stack +3) Connect the wiimote to your bluetooth stack if you are under windows. +Activate connection mode of wiimote if you are under linux (push buttons 1 and 2 in the meantime). 4) Double Click wiiusej.jar ====> the WiiuseJ Test GUI should appear and your wiimote vibrate. From c98ff6fcaece71b454a592197dd95b583714c173 Mon Sep 17 00:00:00 2001 From: "guilhem.duche" Date: Sun, 1 Jun 2008 14:40:00 +0000 Subject: [PATCH 33/38] Edited wiki page through web user interface. git-svn-id: http://wiiusej.googlecode.com/svn/wiki@161 ae48ae66-6a45-0410-b38e-211266189506 --- Documentation.wiki | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/Documentation.wiki b/Documentation.wiki index d42befd..dc90285 100644 --- a/Documentation.wiki +++ b/Documentation.wiki @@ -18,10 +18,11 @@ For example, in the following example, each method implemented receives the diff {{{ -public class MyClass implements WiimoteListener{ - - public void onButtonsEvent(ButtonsEvent arg0) { +public void onButtonsEvent(WiimoteButtonsEvent arg0) { System.out.println(arg0); + if (arg0.isButtonAPressed()){ + WiiUseApiManager.shutdown(); + } } public void onIrEvent(IREvent arg0) { @@ -32,6 +33,10 @@ public class MyClass implements WiimoteListener{ System.out.println(arg0); } + public void onExpansionEvent(ExpansionEvent arg0) { + System.out.println(arg0); + } + public void onStatusEvent(StatusEvent arg0) { System.out.println(arg0); } @@ -40,7 +45,15 @@ public class MyClass implements WiimoteListener{ System.out.println(arg0); } -} + public void onNunchukInsertedEvent(NunchukInsertedEvent arg0) { + System.out.println(arg0); + } + + public void onNunchukRemovedEvent(NunchukRemovedEvent arg0) { + System.out.println(arg0); + } + + }}} From b432afd7002750a342ee02c1a637cd167fb18534 Mon Sep 17 00:00:00 2001 From: "guilhem.duche" Date: Sun, 1 Jun 2008 14:45:35 +0000 Subject: [PATCH 34/38] Edited wiki page through web user interface. git-svn-id: http://wiiusej.googlecode.com/svn/wiki@162 ae48ae66-6a45-0410-b38e-211266189506 --- Documentation.wiki | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation.wiki b/Documentation.wiki index dc90285..88fea3f 100644 --- a/Documentation.wiki +++ b/Documentation.wiki @@ -14,7 +14,7 @@ First, make a project. Import wiiusej.jar and put the 2 dlls files at the root o Then make a class (for example MyClass) implementing WiimoteListener with it. -For example, in the following example, each method implemented receives the differents event Types : ButtonsEvent , IREvent , MotionSensingEvent , StatusEvent and DisconnectionEvent (check Javadoc to see what infos you get from each event type). In this case in each method we only display the event received. +For example, in the following example, each method implemented receives the differents event Types : ButtonsEvent, IREvent, MotionSensingEvent, ExpansionEvent, StatusEvent, DisconnectionEvent, NunchukInsertedEvent and NunchukRemovedEvent(check Javadoc to see what infos you get from each event type). In this case in each method we only display the event received. {{{ From f34e312ae425fabd817ff1c0d8bb118d738fd4b5 Mon Sep 17 00:00:00 2001 From: "guilhem.duche" Date: Sun, 1 Jun 2008 14:57:47 +0000 Subject: [PATCH 35/38] Created wiki page through web user interface. git-svn-id: http://wiiusej.googlecode.com/svn/wiki@163 ae48ae66-6a45-0410-b38e-211266189506 --- FAQ.wiki | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 FAQ.wiki diff --git a/FAQ.wiki b/FAQ.wiki new file mode 100644 index 0000000..918d098 --- /dev/null +++ b/FAQ.wiki @@ -0,0 +1,38 @@ +#Frequently Asked Questions + += Frequently Asked Questions = + +Q : Can WiiuseJ send audio to the wiimote ? + +A : Wiiuse doesn't support it so WiiuseJ can't support either. + + +Q : Why do i got this error ? +{{{ + +Exception in thread "Thread-0" java.lang.NoSuchMethodError: java.util.Arrays.copyOfRange([Ljava/lang/Object;II)[Ljava/lang/Object; + +at wiiusej.wiiuseapievents.EventsGatherer.getEvents(EventsGatherer.java:227) + +at wiiusej.WiiUseApiManager.run(WiiUseApiManager.java:415) + +[INFO] Connected to wiimote [id 1]. + +}}} + +A : So far you need java 1.6 to use WiiuseJ. Here a method from java 1.6 is missing in the java you have. I'll fix it in another release. + + +Q : How can i reconnect the wiimotes and find new wiimotes. + +A : Shutdown WiiuseJ: WiiUseApiManager.shutdown(); and get wiimotes again : WiiUseApiManager.getWiimotes(2, true); + + +Q : I have this error: Error: [ERROR] Unable to +determine bluetooth stack type. What can i do ? + +A : You can try to force the type of bluetooth stack you got. For this get the wiimotes this way : WiiUseApiManager.getWiimotes(2, true, WiiUseApiManager.WIIUSE_STACK_MS); if you got a windows bluetooth stack or widcomm. Use WiiUseApiManager.WIIUSE_STACK_BLUESOLEIL if you got bluesoleil. + + + + From 2df0a5d101fd8fd6188d24a3f4d7fbf25a876588 Mon Sep 17 00:00:00 2001 From: "guilhem.duche" Date: Sun, 1 Jun 2008 14:58:17 +0000 Subject: [PATCH 36/38] Edited wiki page through web user interface. git-svn-id: http://wiiusej.googlecode.com/svn/wiki@164 ae48ae66-6a45-0410-b38e-211266189506 --- FAQ.wiki | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/FAQ.wiki b/FAQ.wiki index 918d098..36179f0 100644 --- a/FAQ.wiki +++ b/FAQ.wiki @@ -2,12 +2,12 @@ = Frequently Asked Questions = -Q : Can WiiuseJ send audio to the wiimote ? +*Q :* Can WiiuseJ send audio to the wiimote ? A : Wiiuse doesn't support it so WiiuseJ can't support either. -Q : Why do i got this error ? +*Q :* Why do i got this error ? {{{ Exception in thread "Thread-0" java.lang.NoSuchMethodError: java.util.Arrays.copyOfRange([Ljava/lang/Object;II)[Ljava/lang/Object; @@ -23,16 +23,14 @@ at wiiusej.WiiUseApiManager.run(WiiUseApiManager.java:415) A : So far you need java 1.6 to use WiiuseJ. Here a method from java 1.6 is missing in the java you have. I'll fix it in another release. -Q : How can i reconnect the wiimotes and find new wiimotes. +*Q :* How can i reconnect the wiimotes and find new wiimotes. A : Shutdown WiiuseJ: WiiUseApiManager.shutdown(); and get wiimotes again : WiiUseApiManager.getWiimotes(2, true); -Q : I have this error: Error: [ERROR] Unable to +*Q :* I have this error: Error: [ERROR] Unable to determine bluetooth stack type. What can i do ? A : You can try to force the type of bluetooth stack you got. For this get the wiimotes this way : WiiUseApiManager.getWiimotes(2, true, WiiUseApiManager.WIIUSE_STACK_MS); if you got a windows bluetooth stack or widcomm. Use WiiUseApiManager.WIIUSE_STACK_BLUESOLEIL if you got bluesoleil. - - From 0b05ef286cc617cf8b0998744444beee24ec09da Mon Sep 17 00:00:00 2001 From: "guilhem.duche" Date: Sun, 1 Jun 2008 14:59:20 +0000 Subject: [PATCH 37/38] Edited wiki page through web user interface. git-svn-id: http://wiiusej.googlecode.com/svn/wiki@165 ae48ae66-6a45-0410-b38e-211266189506 --- FAQ.wiki | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/FAQ.wiki b/FAQ.wiki index 36179f0..8fc1577 100644 --- a/FAQ.wiki +++ b/FAQ.wiki @@ -1,3 +1,4 @@ +#labels Featured,Phase-Support #Frequently Asked Questions = Frequently Asked Questions = @@ -32,5 +33,3 @@ A : Shutdown WiiuseJ: WiiUseApiManager.shutdown(); and get wiimotes again : WiiU determine bluetooth stack type. What can i do ? A : You can try to force the type of bluetooth stack you got. For this get the wiimotes this way : WiiUseApiManager.getWiimotes(2, true, WiiUseApiManager.WIIUSE_STACK_MS); if you got a windows bluetooth stack or widcomm. Use WiiUseApiManager.WIIUSE_STACK_BLUESOLEIL if you got bluesoleil. - - From 173e2114d17f2b53ba5a1f2f8eb2b88feedd54db Mon Sep 17 00:00:00 2001 From: "guilhem.duche" Date: Sun, 1 Jun 2008 15:00:20 +0000 Subject: [PATCH 38/38] Edited wiki page through web user interface. git-svn-id: http://wiiusej.googlecode.com/svn/wiki@166 ae48ae66-6a45-0410-b38e-211266189506 --- FAQ.wiki | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FAQ.wiki b/FAQ.wiki index 8fc1577..a5a5ff8 100644 --- a/FAQ.wiki +++ b/FAQ.wiki @@ -32,4 +32,4 @@ A : Shutdown WiiuseJ: WiiUseApiManager.shutdown(); and get wiimotes again : WiiU *Q :* I have this error: Error: [ERROR] Unable to determine bluetooth stack type. What can i do ? -A : You can try to force the type of bluetooth stack you got. For this get the wiimotes this way : WiiUseApiManager.getWiimotes(2, true, WiiUseApiManager.WIIUSE_STACK_MS); if you got a windows bluetooth stack or widcomm. Use WiiUseApiManager.WIIUSE_STACK_BLUESOLEIL if you got bluesoleil. +A : You can try to force the type of bluetooth stack you got. This is only for windows. For this get the wiimotes this way : WiiUseApiManager.getWiimotes(2, true, WiiUseApiManager.WIIUSE_STACK_MS); if you got a windows bluetooth stack or widcomm. Use WiiUseApiManager.WIIUSE_STACK_BLUESOLEIL if you got bluesoleil. \ No newline at end of file