Can i use usb joysticks with SDL?

An embedded and charset-unspecified text was scrubbed…
Name: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20030925/b2f7ffc5/attachment.asc

I would think so - if your OS provides drivers for them. SDL just uses
whatever APIs there are on your platform.

SDL is a user space library and not a driver architechure, although it
might touch on the border on some platforms.

And if it’s ever ported to DOS, it would almost have to be an OS. :slight_smile:

//David Olofson - Programmer, Composer, Open Source Advocate

.- Audiality -----------------------------------------------.
| Free/Open Source audio engine for games and multimedia. |
| MIDI, modular synthesis, real time effects, scripting,… |
`-----------------------------------> http://audiality.org -’
http://olofson.nethttp://www.reologica.se —On Thursday 25 September 2003 22.36, Anders Folkesson wrote:

hmm…can i?

Under windows I have got USB joysticks working fine - they are just like
any other joystick, as long as they are set up in windows they will
work. I cant say about other platforms but I imagine its a similar situation.

Neil.

Yup, I do in windows… a Logitech WingMan Extreme & Microsoft Sidewinder, it
supports the gaming devices that your system can use. That includes my gameport
joypad :slight_smile:

Only one small gripe is that they are all called ‘Microsoft PC-joystick driver’.
Blame MS

Cheers,
John Drinkwater

Anders Folkesson wrote:> hmm…can i?

thanx

–Anders Folkesson


Get your free web-based e-mail account from http://www.Math.net
Your online tourguide of Mathematics, with books, links, news,
message boards, and much more!


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

At 10:40 PM 25/09/2003 +0100, you wrote:

Yup, I do in windows… a Logitech WingMan Extreme & Microsoft Sidewinder,
it supports the gaming devices that your system can use. That includes my
gameport joypad :slight_smile:

Only one small gripe is that they are all called ‘Microsoft PC-joystick
driver’. Blame MS

Your USB stuff or your gameport stuff? Just curious, as my Sidewinder pad
calls itself its proper name (minus a bit that gets cut off by either SDL
or windows…)

Neil.

hmm…can i?

My Sidewinder (Precision 2 I guess :wink: works just right in SDL apps under
Windows and Linux.

latimeriusOn Thu, Sep 25, 2003 at 01:36:15PM -0700, Anders Folkesson wrote:

Currently i’ve got all 3 plugged in…

Mounting ‘Microsoft PC-joystick driver’, number 0 joystick … it’s got : 8
buttons, 0 balls, 3 axies, and 0 hats.
Mounting ‘Microsoft PC-joystick driver’, number 1 joystick … it’s got : 7
buttons, 0 balls, 4 axies, and 1 hats.
Mounting ‘Microsoft PC-joystick driver’, number 2 joystick … it’s got : 4
buttons, 0 balls, 2 axies, and 0 hats.

copied from stdout.txt. #0 + #1 are USB, #2 is gameport:

John

Neil Brown wrote:> At 10:40 PM 25/09/2003 +0100, you wrote:

Yup, I do in windows… a Logitech WingMan Extreme & Microsoft
Sidewinder, it supports the gaming devices that your system can use.
That includes my gameport joypad :slight_smile:

Only one small gripe is that they are all called ‘Microsoft
PC-joystick driver’. Blame MS

Your USB stuff or your gameport stuff? Just curious, as my Sidewinder
pad calls itself its proper name (minus a bit that gets cut off by
either SDL or windows…)

Neil.


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl