Author Topic: Running program without wiimotes... gray screen?  (Read 3234 times)

Offline demon42

  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
on: March 15, 2008, 01:27:47 PM

I've created a 3d Pong-like game that works moderately well, however I'd like to be able to develop and run the program without connecting the wiimotes at all. (no need to interact, except perhaps mouse = wiimote2, as already setup)

Unfortunately, when I comment out the remote.someMethod calls in the OnCreateDevice method, all I get is a gray screen when I run the program. (Same for setting doWiimote = false)

Is there a better way to do this? Do I need to "trick" my program into thinking there's a wiimote connecting?

Thank you in advance!

Offline ZaPPZion

  • *
  • Posts: 137
  • Karma: +11/-1
    • View Profile
Reply #1 on: March 15, 2008, 02:46:51 PM
2 questions first:
What are you using to create the 3d game?
What language are you using?

Ok now some answers that might help you.
You probably set the whole 3d up to render when your wiimotestate changed (event). Just make a while loop in which you render your thing, and poll the wiimote for information. I'm using it that way, and i also made it so that if you dont have a wiimote connected, it'll still run. I did that by making a global boolean variable that holds the connected state of a wiimote object, if that one is true, then it's checking for information, otherwise it'll just skip that step.