Wiimote plugin

Forum for plugin, effect and behavior programmers. Please use the Help & Support forum for help using Construct.

Post » Sun Feb 08, 2009 10:11 am

This is a test release of my Wii remote plugin. It can read
the roll and pitch accelerometer values from one remote.

You'll need a Wii remote and a Bluetooth adapter. The connecting procedure depends on your adapter. Generally, you need to hold 1+2 on the remote for a couple of seconds and then start searching for BT devices. Hold the power button to turn off your remote afterwards.

It uses the Wiiuse api (http://www.wiiuse.net) so the following things should be possible:

- Support for 1-4 remotes
- Accelerometer support
- Button presses
- IR camera tracking (pointing)
- Nunchuck support: accelerometer and buttons

I included a simple test .cap where you can rotate a box to shove some physics blocks around. You need to connect the remote before starting.



The values near 0 (level) are a bit jumpy, but smoothing should be easy to implement in Construct.

Download wiimote.zip
B
2
S
1
G
3
Posts: 71
Reputation: 1,142

Post » Sun Feb 08, 2009 12:14 pm

Zomg!! I dont have a wiimote, sadly, but im glad this has been made. Sounds awesome. Wish i knew enuf c++ to make a plugin. edit: now you have experience with the sdk, do you plan to make a general joypad plugin?
B
2
S
2
G
3
Posts: 193
Reputation: 1,636

Post » Sun Feb 08, 2009 12:24 pm

Wow.

I do have some wiimotes at home, so I'll be testing this then.

One thing which would be cool; if you're happy to release the source code I could help you turn it into a behavior?
B
3
S
2
G
5
Posts: 1,777
Reputation: 5,529

Post » Sun Feb 08, 2009 1:56 pm

Wow, this'd be awesome to have built in as a behavior! This is really cool stuff.
B
6
S
2
G
3
Posts: 520
Reputation: 2,690

Post » Sun Feb 08, 2009 2:14 pm

Wow, Wiimote plugin!!!! Brilliant, who hasn't thought of making a Wii game, now this is the next best thing! I'm gonna have to get one of my Wiimotes and try this out later.
B
2
S
2
G
5
Posts: 156
Reputation: 1,962

Post » Sun Feb 08, 2009 2:54 pm

Sadly I don't have a Wiimote, but this looks great! Nice one!
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,468

Post » Sun Feb 08, 2009 4:03 pm

Awesome! :D I've been waiting for something like this. I'll have to try it later. :)

EDIT: I just tested it out. It's a good start, but there seems to be quite a bit of lag. If you can clean that up and add the rest of the Wiimote features, it could be a really great plugin. :)
Moderator
B
97
S
36
G
19
Posts: 1,584
Reputation: 17,692

Post » Mon Feb 09, 2009 7:04 am

This looks awesome :D

Now I just need to get one of those bluetooth things for my computer...
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Tue Feb 10, 2009 2:15 pm

Hah cool nice one!
B
3
S
2
G
5
Posts: 301
Reputation: 2,302

Post » Tue Feb 10, 2009 6:14 pm

i'm really eager to try it, but the host does not respond to me ... it's probably just a temporary issue, but if it's not, could you upload it somewhere else? that'd be rad!
B
2
S
2
G
4
Posts: 171
Reputation: 1,792

Next

Return to Construct engineering

Who is online

Users browsing this forum: No registered users and 0 guests