Wiimote plugin: the second coming

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

Post » Sat Dec 12, 2009 1:32 am

I've seen example and had a small testdrive, but a proper in game thing would be really helpful.
B
4
S
1
G
3
Posts: 85
Reputation: 1,234

Post » Tue Feb 09, 2010 8:44 pm

Updated this for 99.82: Wiimote-1.01.zip

This version adds Nunchuk support. Updated ACE list:

== Actions ==

Connect (connect to the first available remote)
Disconnect
Set report level (buttons only/+accelerometer/+infrared, higher settings use more power)
Set rumble (on/off)
Set LEDs (1/0 for each led)
Set joystick deadzone (0.0 - 1.0, default 0.03, 1.0 would filter out everything :))

== Conditions ==

Connected
Connection lost
Button pressed
Button down
Button released
Nunchuk connected

== Expressions ==

Pitch (In degrees -180 to 180)
Roll (In degrees, -90 to 90, 0 is level, remote can't detect upside-down)
Orientation X
Orientation Y
Orientation Z
Acceleration X
Acceleration Y
Acceleration Z
Battery level (percentage)
IR X (interpolated 0-1.0 from all leds)
IR Y (same as above)
IR Z (Estimated led size, very rough)
Raw IR X (led number 1-4)
Raw IR Y (led number 1-4)
IR Report level
LED status (Sensor bar led groups seen, bar has 2 but remote can track 4)
Update age (in milliseconds, if age is too much orientation data might be
unreliable)
Joystick X
Joystick Y
Nunchuk pitch
Nunchuk roll
Nunchuk acceleration X
Nunchuk acceleration Y
Nunchuk acceleration Z
Nunchuk Orientation X
Nunchuk Orientation Y
Nunchuk Orientation Z
Nunchuk Update age
Nunchuk Deadzone X
Nunchuck Deadzone Y
B
2
S
1
G
3
Posts: 71
Reputation: 1,142

Post » Tue Feb 09, 2010 9:18 pm

That's it! I'm going out to buy a wiimote just for this. :mrgreen:
B
25
S
3
G
6
Posts: 1,197
Reputation: 5,620

Post » Tue Feb 09, 2010 9:52 pm

Sweet! I'm glad you're still working on this. :)

Have you considered putting Motion Plus support in? I could always help out with testing in case you don't have one.

EDIT: Looks like the download link is broken, so I can't try out the latest version.
Moderator
B
98
S
37
G
19
Posts: 1,584
Reputation: 17,817

Post » Tue Feb 09, 2010 11:25 pm

Awesome work!


Now.. about that balance board.. :D
B
3
S
2
G
3
Posts: 628
Reputation: 2,531

Post » Wed Feb 10, 2010 12:27 am

OMG it's back!

I'm gonna try it tomorrow, first thing in the morning!
B
107
S
40
G
10
Posts: 456
Reputation: 13,202

Post » Fri Feb 12, 2010 12:46 am

IT WORKS! HAHA!
B
107
S
40
G
10
Posts: 456
Reputation: 13,202

Post » Fri Feb 12, 2010 8:31 am

Give some feedback then! Right now I'm not very happy how rough IR pointing is and accelerometer values could be smoother (but smoothing them can also make it feel unresponsive). I'll release an update this weekend.
B
2
S
1
G
3
Posts: 71
Reputation: 1,142

Post » Fri Feb 12, 2010 7:43 pm

raw IR pointing data is always rough.... maybe include some adjustable smoothing code?
B
3
S
2
G
4
Posts: 1,445
Reputation: 4,665

Post » Sat Feb 13, 2010 4:41 pm

New version 1.02

Updated to Wiiyourself API 1.15RC2. New feature in this version is Balance board support. Theoretical support, since I don't have one to test with.

With BB use the plugin as with a remote. Optionally you can check with the "Is balance board" condition if BB is present. To pair BB with your bluetooth adapter, press the button inside the battery compartment.

New ACEs, all BB related:

== Actions ==
Reset weight calibration (recalibrate BB at rest)

== Conditions ==
Is balance board (checks if this remote is actually a BB)

== Expressions ==
Total weight (in KG)
Top left weight
Top right weight
Bottom left weight
Bottom right weight
B
2
S
1
G
3
Posts: 71
Reputation: 1,142

PreviousNext

Return to Construct engineering

Who is online

Users browsing this forum: No registered users and 1 guest