| View previous topic :: View next topic |
| Author |
Message |
redfieldblair
Joined: 23 Jan 2007 Posts: 14
Digg It |
Posted: 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 |
|
 |
CASTer
Joined: 23 Jan 2007 Posts: 13
Digg It |
Posted: 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 |
|
 |
redfieldblair
Joined: 23 Jan 2007 Posts: 14
Digg It |
Posted: 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 |
|
 |
mikey
Joined: 25 Dec 2006 Posts: 56
Digg It |
Posted: 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 |
|
 |
redfieldblair
Joined: 23 Jan 2007 Posts: 14
Digg It |
Posted: 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 ) |
|
| Back to top |
|
 |
|