Wiimote Project

General Wiimote and Technology => Programmers Den => Topic started by: guiguito on March 10, 2008, 07:13:30 PM

Title: New Java API for wiimotes: WiiuseJ
Post by: guiguito on March 10, 2008, 07:13:30 PM
WiiuseJ is a java API to use wiimotes on your computer. This API is built on top of an excellent API call Wiiuse using JNI.

WiiuseJ intent to be a very simple, easy to use and lightweight java API for wiimotes.

Some of the great aspects of this API are :

* The compatibility which is as large as Wiiuse's API compatibility
* Cross-platform : Windows and linux (like Wiiuse)
* Easy to use


Check Website : http://wiiusej.googlecode.com/ (http://wiiusej.googlecode.com/)


(http://www.monsterup.com/upload/1205189389.jpg)


This might interest people who would like to use wiimotes in Java programs.

Please don't hesistate to ask question or give any feedbacks...

 :D
Title: Re: New Java API for wiimotes: WiiuseJ
Post by: guiguito on March 31, 2008, 02:34:08 PM
I updated to version 0.11. The main feature added is the linux version !!
Title: Re: New Java API for wiimotes: WiiuseJ
Post by: TacticSiege on April 22, 2008, 06:58:32 PM
Hey, just wanted to voice my support for your work.  I am just starting out with coding, and so far my only formal course work has been with java.  Man it was a headache trying to teach myself C# just to connect to a wiimote!  Great work so far, glad to hear you got it up and running on Linux.

I am new to the whole .jar and .dll incorporation in java code.  As I understand it, I copy both .dlls (libwiiuseJ.dll and wiiuse.dll) as well as wiiusej.jar into my root folder.  Then I would do an import wiiuse.jar; at the start of my code?  This is where I am getting stuck.

Once I have access to your files I understand the rest, with thie wiimote[] wiimotes = ... and adding listeners and all that, I am just uncertain as to how I get the wiiuseJ stuff into and ready to use in my code, any help would be great.

Keep up the good work, I am a lot better off thanks to your efforts already!
Title: Re: New Java API for wiimotes: WiiuseJ
Post by: guiguito on April 23, 2008, 04:36:02 AM
in fact the small tutorial i did on the website was for eclipse and netbeans.
In this case : you import the jar in your project (not in the file) (right click+ properties on your project and somewhere you can import the library) and you put the the two dlls at the root of you eclipse/netbeans project.

If you can have the wiiuseJ gui working it is sure taht you can use it in your java project.

Also check the sample netbeans app in the download section and get back to me if you cant get it work.


cheers


ggt
Title: Re: New Java API for wiimotes: WiiuseJ
Post by: REA on April 28, 2008, 09:11:54 PM
how do you open the program?

please don't laugh to hard, i'm new at this.
Title: Re: New Java API for wiimotes: WiiuseJ
Post by: guiguito on April 29, 2008, 04:11:34 AM
if is quite simple. Make sure java j2se 6 is installed on your computer. Unzip wiiusej.zip in a folder. Connect the wiimote to your bluetooth stack then double click on wiiuseJ.jar and it should work. Otherwise go in command line and type : java -jar wiiusej.jar ...
Title: Re: New Java API for wiimotes: WiiuseJ
Post by: TacticSiege on May 04, 2008, 03:42:00 PM
@Guiguito:  Thanks for the reply, all set up and working in NetBeans now!  Thanks again for making this possible.

a side note: Wow, I'm glad you mentioned netbeans... a shame it took me so long to start using it!
Title: Re: New Java API for wiimotes: WiiuseJ
Post by: guiguito on June 01, 2008, 12:09:20 PM
WiiuseJ 0.12 is out. Added nunchuk support. Based now on wiiuse 0.12 and plenty of other improvements !!!
Title: Re: New Java API for wiimotes: WiiuseJ
Post by: guiguito on July 30, 2008, 03:42:16 PM
The new version of wiiusej has been released : 0.12a. It adds the support of the guitar hero3 controller and the classic controller. Check it out :


http://wiiusej.googlecode.com/ (http://wiiusej.googlecode.com/)
Title: Re: New Java API for wiimotes: WiiuseJ
Post by: bradz on September 10, 2008, 12:43:24 AM
Does anyone have a similar app for the balance board?

Or better sill raw packets for the device? it's a SPP correct?

I'll be web-casting workout data here:
http://www.verticalchallenge.org/bioharness/summary.php

thanks,
brad
Title: Re: New Java API for wiimotes: WiiuseJ
Post by: guiguito on September 16, 2008, 08:07:48 AM
wiiusej relies on a C API : www.wiiuse.net which doesn't support the wii balance board yet. (soon to come).


wiiremotej does support the wii balance board, but is not compatible with the bluetooth i use. you can try.
other java api may permit you to acces raw data packets, in fact i dont know. WiiuseJ won't help you to acces raw data.

i dont know what is SPP...
Title: Re: New Java API for wiimotes: WiiuseJ
Post by: acidhax on September 28, 2008, 09:00:57 PM
THANK YOU!
Title: Re: New Java API for wiimotes: WiiuseJ
Post by: huhu on September 29, 2008, 07:51:49 PM
Hey this is really great work!

I would love to use your lib for my bachalor work!
I searched for so long for a good fundamental for the project i would like to do and now - its like 10.000 hours of programming, building hardware .. are not necessary anymore - this makes it really esier for me..

i will let you know and will publish it somewhere on your forums when it's done -- give me a year
good job!
andrej
Title: Re: New Java API for wiimotes: WiiuseJ
Post by: guiguito on October 02, 2008, 07:12:24 AM
i'd love to hear from you about the projects you could make using wiiuseJ.


I'll program some funny stuffs too soon .. I'll let you know :D


i'm glad it fits your needs ...
Title: Re: New Java API for wiimotes: WiiuseJ
Post by: bob234 on October 24, 2008, 09:23:59 AM
Hi, are there plans to make this work on the Mac?

Thanks!
Title: Re: New Java API for wiimotes: WiiuseJ
Post by: benpaddlejones on October 25, 2008, 01:55:48 AM
bob234
Being Java should eb the preferred platform?

benpaddlejones :)
Title: Re: New Java API for wiimotes: WiiuseJ
Post by: guiguito on October 25, 2008, 08:28:02 AM
hello bob,


as explained on the website, WiiUseJ is made on top of a C API called wiiuse : see wiiuse.net. This API is made for windows and linux only. As long as wiiuse is not made for make, i won't be able to make wiiusej compatible for mac :/ sorry


Brgds


Guiguito
Title: Re: New Java API for wiimotes: WiiuseJ
Post by: zalis on June 28, 2010, 09:25:38 AM
hey guys,
im new to all the wii programming and the wii hardware but i would like to play around with this software but im still unable to open it in netbeans i have downloaded the SampleAppWiiuseJ app and once i open it in netbeans it gave told me that wiiuse.jar file is missing so i add the .jar file from lib folder but im not very sure where i need to paste the last two  .dll files  so the program would run for me on netbeans
thank you