Edited wiki page through web user interface.
git-svn-id: http://wiiusej.googlecode.com/svn/wiki@161 ae48ae66-6a45-0410-b38e-211266189506
This commit is contained in:
@@ -18,10 +18,11 @@ For example, in the following example, each method implemented receives the diff
|
|||||||
|
|
||||||
|
|
||||||
{{{
|
{{{
|
||||||
public class MyClass implements WiimoteListener{
|
public void onButtonsEvent(WiimoteButtonsEvent arg0) {
|
||||||
|
|
||||||
public void onButtonsEvent(ButtonsEvent arg0) {
|
|
||||||
System.out.println(arg0);
|
System.out.println(arg0);
|
||||||
|
if (arg0.isButtonAPressed()){
|
||||||
|
WiiUseApiManager.shutdown();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onIrEvent(IREvent arg0) {
|
public void onIrEvent(IREvent arg0) {
|
||||||
@@ -32,6 +33,10 @@ public class MyClass implements WiimoteListener{
|
|||||||
System.out.println(arg0);
|
System.out.println(arg0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void onExpansionEvent(ExpansionEvent arg0) {
|
||||||
|
System.out.println(arg0);
|
||||||
|
}
|
||||||
|
|
||||||
public void onStatusEvent(StatusEvent arg0) {
|
public void onStatusEvent(StatusEvent arg0) {
|
||||||
System.out.println(arg0);
|
System.out.println(arg0);
|
||||||
}
|
}
|
||||||
@@ -40,7 +45,15 @@ public class MyClass implements WiimoteListener{
|
|||||||
System.out.println(arg0);
|
System.out.println(arg0);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
public void onNunchukInsertedEvent(NunchukInsertedEvent arg0) {
|
||||||
|
System.out.println(arg0);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onNunchukRemovedEvent(NunchukRemovedEvent arg0) {
|
||||||
|
System.out.println(arg0);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}}}
|
}}}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user