From c98ff6fcaece71b454a592197dd95b583714c173 Mon Sep 17 00:00:00 2001 From: "guilhem.duche" Date: Sun, 1 Jun 2008 14:40:00 +0000 Subject: [PATCH] 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); + } + + }}}