Can SDL detect and use multiple USB mice in a multiplatform way?

Is there a way to use multiple USB mice within SDL, without having to
resort to system-specific (X11/DirectX) code? Based on the way the API
is described in the SDL documentation, I would guess the answer is no.
Could someone please prove me wrong :slight_smile:

In case anyone was wondering, I’m planning on using multiple
mice/trackballs as multiple paddles for the Atari 2600 emulator,
Stella. It would be so nice if SDL detected them, and even nicer if it
worked multi-platform (Windows and Linux, and possibly MacOS).

Thanks,
Steve

-----BEGIN PGP SIGNED MESSAGE-----On Saturday 20 March 2004 06:52 pm, Stephen Anthony wrote:

Is there a way to use multiple USB mice within SDL, without having to
resort to system-specific (X11/DirectX) code? Based on the way the API
is described in the SDL documentation, I would guess the answer is no.
Could someone please prove me wrong :slight_smile:

No, this sort of stuff is very platform dependent. You need a device entries
for every mice under X11.


  • -Juan D. Espinoza

"Happiness makes up in height for what it lacks in length."
Robert Frost

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv

iQCVAwUBQF0VFkagrZ9eMssBAQFeRAQApBXW/GItO1xRX+d7QodGalmsH7Dl/j9E
do25FQN2AqWLLLfzstdXNcZLZLYJKT061DtAf5Sf8RsT1K0yYNqJaOYx1srxF7f8
K5zUYNRkhJq6EjF9LM1lfhjQSFrPx1eGECsbyVlaU/cXljbTfuubdlf5uBEfaD82
SkLpLU5jkIE=
=ONRY
-----END PGP SIGNATURE-----

What? The entire purpose of SDL is to abstract things that are very
platform dependent.

I’d expect the demand for this particular feature is far too small.On Sat, Mar 20, 2004 at 08:07:48PM -0800, Die Nacht! wrote:

Is there a way to use multiple USB mice within SDL, without having to
resort to system-specific (X11/DirectX) code? Based on the way the API
is described in the SDL documentation, I would guess the answer is no.
Could someone please prove me wrong :slight_smile:

No, this sort of stuff is very platform dependent.


Glenn Maynard

I’d expect the demand for this particular feature is far too small.

I’d like such a feature, so that I could make a particular 2 players
game…

That’s right though that such a feature has rarely been used. The only
example I can think of is Lemmings (on the Amiga).On 21/03/2004, Glenn Maynard, you wrote:


Please remove “.ARGL.invalid” from my email when replying.
Incoming HTML mails are automatically deleted.

Is there a way to use multiple USB mice within SDL

No, SDL currently doesn’t support multiple mice.

See ya!
-Sam Lantinga, Software Engineer, Blizzard Entertainment