WiiLi Wiki frontpage Include your post in the News Get links Hoteles Quito
WiiLi.org Forum Index WiiLi.org
a new revolution
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Need help with Java and the wiimote.
Goto page Previous  1, 2, 3, 4, 5, 6  Next
 
Post new topic   Reply to topic    WiiLi.org Forum Index -> WiiremoteJ
View previous topic :: View next topic  
Author Message
SilentShaddow



Joined: 10 Feb 2008
Posts: 33

Digg It
PostPosted: 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
View user's profile Send private message
SilentShaddow



Joined: 10 Feb 2008
Posts: 33

Digg It
PostPosted: 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
View user's profile Send private message
Cha0s
Site Admin


Joined: 17 Jan 2007
Posts: 449

Digg It
PostPosted: 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
View user's profile Send private message
guiguito



Joined: 16 Dec 2007
Posts: 14

Digg It
PostPosted: 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
View user's profile Send private message
SilentShaddow



Joined: 10 Feb 2008
Posts: 33

Digg It
PostPosted: 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
View user's profile Send private message
guiguito



Joined: 16 Dec 2007
Posts: 14

Digg It
PostPosted: 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
View user's profile Send private message
SilentShaddow



Joined: 10 Feb 2008
Posts: 33

Digg It
PostPosted: 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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    WiiLi.org Forum Index -> WiiremoteJ All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6  Next
Page 5 of 6

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group