WiiLi Wiki frontpage Include your post in the News Get links Hoteles Quito
WiiLi.org Forum Index WiiLi.org
a new revolution
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Open Sourcing Moding

 
Post new topic   Reply to topic    WiiLi.org Forum Index -> General Windows Wiimote
View previous topic :: View next topic  
Author Message
redfieldblair



Joined: 23 Jan 2007
Posts: 14

Digg It
PostPosted: Tue Jan 23, 2007 12:00 pm    Post subject: Open Sourcing Moding

I'm interested in applying Wiimote controls to open source games with multiple modes (e.g. FPS with car control, or even just seamless menu and game control).
So far I've been experimenting with glove pie, basically using one of the buttons as a toggle switch to alter the functionallity, is there any way to send a message to GlovePie from within the game or is cWiiMote the only way to go?

Are there any good examples of using cWiiMote? It doesn't seem to come with documentation, or particularly exhaustive comments, it doesn't look too complicated but anything its always nice to have a reference.
Back to top
View user's profile Send private message
CASTer



Joined: 23 Jan 2007
Posts: 13

Digg It
PostPosted: Wed Jan 24, 2007 10:07 am    Post subject:

What I use is a simple toggle, not sure if you want to know this...

while 1 do
var.On = "1"
wait 190000 days
endif
if Smooth(Wiimote.One, 1000) then
if var.On = "1"
var.On = "0"
else var.On = "1"
wait 1000 ms
endif

Then place code between...

if var.On = "1" then
code
possible else to have to modes already instead of using another if and adjusting the counter as such
code2
endif
Back to top
View user's profile Send private message
redfieldblair



Joined: 23 Jan 2007
Posts: 14

Digg It
PostPosted: Thu Jan 25, 2007 3:03 pm    Post subject:

Pretty much how I've been testing it for now CASter, thanks for the response, hadn't forgotten about the wait command, damn useful to prevent variable re-initalisation though. Eventually though I want an inbuilt solution so will look into cWiiMote.
Back to top
View user's profile Send private message
mikey



Joined: 25 Dec 2006
Posts: 56

Digg It
PostPosted: Sat Jan 27, 2007 7:55 pm    Post subject:

http://code.google.com/p/wiimote-api/

I think I'm doing an okay job of documenting it. But it doesn't have motion control (it does have IR). I can put in motion control (probably just mod cwiimote's code) and any other feature requests if I know someone is using it.
Back to top
View user's profile Send private message Visit poster's website
redfieldblair



Joined: 23 Jan 2007
Posts: 14

Digg It
PostPosted: Mon Jan 29, 2007 4:39 pm    Post subject:

Awesome to see mikey, as soon as my wireless sensor bar arrives I'll check it out properly (I imagined shipping would be quicker than this or I'd have just built my own Razz)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    WiiLi.org Forum Index -> General Windows Wiimote All times are GMT
Page 1 of 1

 
Jump to:  
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