multiple controllers

BlitzMax Forums/BlitzMax Beginners Area/multiple controllers

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I'm not sure whether it's a bug or just undocumented, but you need to call JoyCount() at least once.

So...
Graphics 400, 300, 0

JoyCount()

Repeat
  Cls

  drawText "Port 0 - " + JoyX(0) + " : " + JoyY(0), 12, 12
  drawText "Port 1 - " + JoyX(1) + " : " + JoyY(1), 12, 24

  flip
Until appTerminate()

End
...should work.

As you should really be calling JoyCount() at some point anyway, it's not a big problem.