2 USB Mice?

Blitz3D Forums/Blitz3D Programming/2 USB Mice?

Colvette(Posted 2005) [#1]
Hey,

Anyone know how to read the input from 2 USB mice in Blitz3D? Some example code would be appreciated!

Just had a bit of an idea which would need two completely free-form controllers, so I need to try it out!

Thanks in advance!


Colvette(Posted 2005) [#2]
Oh, and I'd need to know how to use both scroll-wheels too! :)


Jams(Posted 2005) [#3]
Don't think that's gonna be possible mate, afaik plugging in two mice doesn't give you two mouse cursors, they just share control over the same cursor. For example if you move both mice in the opposite direction, the mouse cursor should stay perfectly still.

It be a Windows issue, nothing to do with Blitz i'm afraid.


DH(Posted 2005) [#4]
Jams is right.


Colvette(Posted 2005) [#5]
Yeah, I gathered it wouldn't work in Windows, but there is no way to read the input seperately, based on the fact that they're in different ports?


Colvette(Posted 2005) [#6]
Sooo... apparently, using "Direct Input" (in DX) it's possible to ennumerate the mice plugged into a PC, then use them as you wish.

Anyone have any idea how I could do this in Blitz?

Ta! :)


Bouncer(Posted 2005) [#7]
No way to do this with blitz... DirectX doesn't support multiple mice. Only way is RAW input...

Only way to do this in blitz is if someone would make a wrapper dll for something like mame....
http://urebelscum.speedhost.com/feature.html