I'm not sure whether it's a bug or just undocumented, but you need to call JoyCount() at least once.
So...
As you should really be calling JoyCount() at some point anyway, it's not a big problem.
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.