| View previous topic :: View next topic |
| Author |
Message |
Fluesopp
Joined: 13 Mar 2008 Posts: 7
Digg It |
Posted: Thu Mar 13, 2008 3:07 pm Post subject: Tutorial or preset |
|
|
Just got my bluetooth dongle yesterday, and managed to connect to the wiimote. I even wrote a simple gui to utilize it instead of
Is it any tutorials out there?
Or a preset that implements everything in a class? (Not the WRLImpl, as much of the data is in the main() method.. And I want to call the function from a external class.)
I managed to do some of it, but right now it's just too messy, and contains mostly copypasta from WRLImpl.
So, I'm looking for a empty class with the needed methods, and a method for obtaining the wiimote.
Or a tutorial that explains how... |
|
| Back to top |
|
 |
Cha0s Site Admin
Joined: 17 Jan 2007 Posts: 421
Digg It |
Posted: Thu Mar 13, 2008 7:41 pm Post subject: |
|
|
Well, the API is not great at explaining things, but it is a good starting point. You can find all methods for obtaining a WiiRemote in the WiiRemoteJ class and most of the details about using the remote in the WiiRemote class. I do plan to write a sample program at some point, but I just haven't had the time (I'm working on another big project, at the moment). If you have any specific questions that aren't answered in the API, I'll do my best to help you. _________________ Cha0s |
|
| Back to top |
|
 |
Fluesopp
Joined: 13 Mar 2008 Posts: 7
Digg It |
Posted: Fri Mar 14, 2008 10:36 am Post subject: |
|
|
Well, my questions are mostly how I best can implement this into a exsisting project, withouth any problems.
When I experimented with it, I often got this connection problem.
My bluetooth stopped working, and I had to restart my computer. I think it was the wiimote that never disconnected from the bluetooth. |
|
| Back to top |
|
 |
Cha0s Site Admin
Joined: 17 Jan 2007 Posts: 421
Digg It |
Posted: Sat Mar 15, 2008 3:57 am Post subject: |
|
|
If you push and hold the power button the Wii Remote, it will disconnect. That shouldn't be an issue, though. What OS/Bluetooth stack are you using? _________________ Cha0s |
|
| Back to top |
|
 |
Fluesopp
Joined: 13 Mar 2008 Posts: 7
Digg It |
Posted: Sat Mar 15, 2008 9:18 am Post subject: |
|
|
I'm using Bluecove on XP.
It's happening when Bluecove doesn't succesfully shut down.
I did some more testing, and it happened particulary when I pressed the stop button in NetBeans (which I think invokes a System.exit(1); )
Or is it just a coincidence? |
|
| Back to top |
|
 |
|