 |
WiiLi.org a new revolution
|
| View previous topic :: View next topic |
| Author |
Message |
para
Joined: 20 Aug 2007 Posts: 89
Digg It |
Posted: Wed Jan 30, 2008 4:25 pm Post subject: |
|
|
| Ethanfel wrote: | humm, i dont know how to say this exatly.
Wiimote can, whem you shake her in X or Y axe speedly , she can make action.
With glovepie, the code is like this :
| Code: |
var.xRot = Wiimote.RawForceX
var.yRot = Wiimote.RawForceY
if var.yRot >= 100 then v = true else v = false
if var.xRot >= 100 then h = true else h = false
|
when i shake my wiimote verticaly (y), i obtain the key "v"
i search everywere, i dont find how to make it with cwiid. |
You want the gravity forces. So if you shake the wiimote left and right hard enough you may get 2 or 3 g forces on the X-axis. It has nothing to do with rotation... where did xRot come from?
I don't know if CWiid does this, but the wiiuse library does. Check my signature for the link. _________________ wiiuse C wiimote library - http://wiiuse.net/ |
|
| Back to top |
|
 |
Ethanfel
Joined: 02 Sep 2007 Posts: 6
Digg It |
Posted: Wed Jan 30, 2008 7:32 pm Post subject: |
|
|
thx, very usefull wiiuse
I make it with xwii, perferct  |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|