2 joysticks

Blitz3D Forums/Blitz3D Beginners Area/2 joysticks

shawnus(Posted 2008) [#1]
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


Pongo(Posted 2008) [#2]
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.


shawnus(Posted 2008) [#3]
Pongo,

Thats great, thanks very much!

Shawnus


Ginger Tea(Posted 2008) [#4]
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


IPete2(Posted 2008) [#5]
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.


Matty(Posted 2008) [#6]
I've heard though that DirectInput only handles a maximum of 16 joysticks, or something like that.