| View previous topic :: View next topic |
| Author |
Message |
SilentShaddow
Joined: 10 Feb 2008 Posts: 33
Digg It |
Posted: Fri Feb 29, 2008 10:53 pm Post subject: |
|
|
| the command line says nothing, it most certainly doesnt throw an error... im going to try removing the error handling thing. ill let you know |
|
| Back to top |
|
 |
SilentShaddow
Joined: 10 Feb 2008 Posts: 33
Digg It |
Posted: Sun Mar 09, 2008 2:15 am Post subject: |
|
|
nope, nothing has helped,
can anybody explain why this would crash java and not generate an error? the cmd looks altho somebody pressed control + c |
|
| Back to top |
|
 |
Cha0s Site Admin
Joined: 17 Jan 2007 Posts: 449
Digg It |
Posted: Sun Mar 09, 2008 2:25 am Post subject: |
|
|
What version of Java do you have? Also, make sure you get the latest WIDCOMM drivers. _________________ Cha0s |
|
| Back to top |
|
 |
guiguito
Joined: 16 Dec 2007 Posts: 14
Digg It |
Posted: Tue Mar 11, 2008 3:11 pm Post subject: |
|
|
if it is still some problem with JSR 82 i think you can try WiiuseJ.
At least download it and test it. It's really quick to test checkthe the website. Are you working under windows ? i haven't compiled the linux version yet. |
|
| Back to top |
|
 |
SilentShaddow
Joined: 10 Feb 2008 Posts: 33
Digg It |
Posted: Tue Mar 11, 2008 10:52 pm Post subject: |
|
|
I have used thw wiisueJ gui and it worked fine, thanks
how do I go about implenting it? |
|
| Back to top |
|
 |
guiguito
Joined: 16 Dec 2007 Posts: 14
Digg It |
Posted: Wed Mar 12, 2008 8:08 am Post subject: |
|
|
i havent made a very detailed documentation yet.
there is an extremely basic user guide on he website check it.
to sum up.
import the jar in your project, put the dlls at the root of your project ...
make a class MyClass implementing WiimoteListener.
Get the wiimotes with Wiimote[] wiimotes = WiiUseApiManager.getWiimotes(1)
and register your class as a listener with : wiimotes.addWiimoteListener(new MyClass);
then you will receiveEvent in the method onIREvent of MyClass ... |
|
| Back to top |
|
 |
SilentShaddow
Joined: 10 Feb 2008 Posts: 33
Digg It |
Posted: Thu Mar 13, 2008 8:44 am Post subject: |
|
|
ok, so I put that in my notepad file:
| Code: | import wiiuse.*;
public class DMXControl
{
public static void main(String args[]) throws exception
{
System.out.println("1");
Wiimote[] wiimotes = WiiUseApiManager.getWiimotes(1);
wiimotes.addWiimoteListener(new MyClass);
System.out.println("3");
};
} |
and went with that, which doesnt compile:
| Code: | C:\Users\Toby\Downloads\wiiuse-0.9-win>javac DMXcode.java
DMXcode.java:8: '(' or '[' expected
wiimotes.addWiimoteListener(new MyClass);
^
1 error |
The website mentions a wiimotelistener interface? what is that and how do I use it? also it appears that outputing to the lights involves creating some form of dll file that the driver uses... .dlls seem to be where its at these days.
go to go to a lecture, be back in 2 hours.
Silent |
|
| Back to top |
|
 |
|