Author Topic: New Java API for wiimotes: WiiuseJ  (Read 24390 times)

Offline guiguito

  • *
  • Posts: 59
  • Karma: +2/-0
    • View Profile
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/





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



Offline guiguito

  • *
  • Posts: 59
  • Karma: +2/-0
    • View Profile
Reply #1 on: March 31, 2008, 02:34:08 PM
I updated to version 0.11. The main feature added is the linux version !!



Offline TacticSiege

  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Reply #2 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!



Offline guiguito

  • *
  • Posts: 59
  • Karma: +2/-0
    • View Profile
Reply #3 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



Offline REA

  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Reply #4 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.

Please resize this! thanks ~
[img]http://www.symbian-freak.com/images/news/07/11/spaceinvaders.gif[img]
                im invading your space!!!!!!!!


Offline guiguito

  • *
  • Posts: 59
  • Karma: +2/-0
    • View Profile
Reply #5 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 ...



Offline TacticSiege

  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Reply #6 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!



Offline guiguito

  • *
  • Posts: 59
  • Karma: +2/-0
    • View Profile
Reply #7 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 !!!



Offline guiguito

  • *
  • Posts: 59
  • Karma: +2/-0
    • View Profile
Reply #8 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/



Offline bradz

  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Reply #9 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



Offline guiguito

  • *
  • Posts: 59
  • Karma: +2/-0
    • View Profile
Reply #10 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...



Offline acidhax

  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Reply #11 on: September 28, 2008, 09:00:57 PM
THANK YOU!



Offline huhu

  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Reply #12 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



Offline guiguito

  • *
  • Posts: 59
  • Karma: +2/-0
    • View Profile
Reply #13 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 ...



Offline bob234

  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Reply #14 on: October 24, 2008, 09:23:59 AM
Hi, are there plans to make this work on the Mac?

Thanks!