Multiple Joy Inputs

BlitzMax Forums/BlitzMax Programming/Multiple Joy Inputs

Twinprogrammer(Posted 2012) [#1]
Hey Guys,

I've been trying to make a game where you use game pads instead of keyboards , and was wondering how can you get input from two different game pads ?

Twinprogrammer


Oddball(Posted 2012) [#2]
All the joystick commands have a port parameter. Change it to get info from different controllers.
JoyX(0)
Will get the X axis of the default controller.
JoyX(1)
Will get the X axis of the second controller.

And so on.

Last edited 2012


Twinprogrammer(Posted 2012) [#3]
Pretty cool. Thanks !

Twinprogrammer


Russell(Posted 2012) [#4]
Of course, it goes without saying that you should check to make sure that there are two controllers plugged in first, using "JoyCount()".

Russell