2 joysticks

Blitz3D Forums/Blitz3D Beginners Area/2 joysticks

Dear all,

Can Blitz support input from 2 joysticks simultaneously (as in eg. helicopter controls, so I can go up & down with one and side to side with the other)?

Thanks, Shawnus

yes

You can read multiple inputs from the same controller, or read multiple controllers at the same time

here is a configuration utility I wrote a while back
http://www.blitzbasic.com/codearcs/codearcs.php?code=1592

for a multiple controllers, you simply read them with

joyx(port)

where port is the number assigned to that joystick.

Pongo,

Thats great, thanks very much!

Shawnus

the two joysticks things makes me think "dual stick 360 type controller" check out 'hover thingie' ok its dual thrusters but you get the idea

yeah and its awesome too - it saved my head last year did that configurator.

I think the range is probably number of joysticks is 0-255

IPete2.

I've heard though that DirectInput only handles a maximum of 16 joysticks, or something like that.