Game Development Community

dev|Pro Game Development Curriculum

Wii Remote Beta Binary

by Rob Terrell · 12/20/2006 (6:12 pm) · 5 comments

The Wii remote code is getting close... close enough to give you something to play with, at least! I call it "TGWii". Here's my clever icon:

[image]"http://stinkbot.com/TGWii_icon.png"[/image]

I've packaged up a (mostly stock) TGE binary with starter.fps and the "killer kork" resource. I'm hoping a few people will give it a try and let me know how well it works / what kind of bugs they find. Download the huge binary [url="http://stinkbot.com/TGWii.zip"]from here[/url] (41 MB, Mac OSX only) if you're interested. Obviously you'll need a Mac with bluetooth support and a Wii remote.

I'm very curious about discovery rates -- how many times you have to press the sync button to get connected. That's something I'd like to improve.


New stuff:

- Rumble support
- Exposed Wiimote functions to TorqueScript (i.e. wiiRumble() )
- Calls TorqueScript handlers on certain Wiimote events (i.e. onWiiDisconnect() )
- Reordering of initialization stuff, to hopefully improve odds of turning on the IR mode (not 100% for me yet)

Notes:

1. Mac only for now. I have started refactoring the code to make it simple to port, but I haven't done any porting work yet.

2. When the app starts, press the red sync button. If the connection is successfully made, the Wiimote will give a short (.2 sec) rumble. If the rumble goes on and on, hit the red sync button again. You can also press the "1" and "2" buttons simultaneously, but sometimes I get better luck with the red button for IR mode.

3. It defaults to tilt sensor mode, so if you don't have an IR bar, you can still give it a try. If you do have an IR bar, press "2" on the remote to turn IR mode on.

4. Press "A" to move forward. Press "B" to fire. "B" maps to mouse1, so you can also use it to click on GUI buttons.

#1
12/20/2006 (6:43 pm)
Cool. Thank you for posting. Looks like the link has a problem though. Here it is again . . .

stinkbot.com/TGWii.zip

If you need a temporary mirror, let me know.
#2
12/20/2006 (7:31 pm)
Hopefully I am getting a Wiimote tonight and I'll check it out on my Mac Book Pro if the Wiimotes are not sold out.
#3
12/20/2006 (10:24 pm)
Is this based on one of the bluetooth implementations that are on the Nintento fansites?

Seen a few guys play NFS Carbon and similar with it on windows.
#4
12/21/2006 (12:36 am)
I got the wiimote and my tgb app working together. I have to rotate the wiimote left and right to move the cursor left and right I don't have the sensor bar so I can't do pointing like on the Wii. I am piggybacking the wiimote driver program GlovePIE so I didn't really integrate anything into TGB. Looks like there is a market for laptop sensor bars.
#5
12/30/2006 (11:30 am)
1. Does your mac have bluetooth built-in, or did you have to buy a dongle?
2. Your Sensor bar is pretty cool... is it possible to power it from USB?
3. Has anyone used GlovePIE to control torque win32 games?
4. Will Nintendo sue our butts if we incorporate this feature with a game we make for windoze/linux/mac?

You are the true master...

Regards,
-E/C