• Sam Lantinga's avatar
    Date: Tue, 27 Jul 2004 17:14:00 +0200 · fa46eb0b
    Sam Lantinga authored
    From: "Eckhard Stolberg"
    Subject: Controller names in SDL for Windows
    
    I'm working on an Atari 2600 emulator for different systems that uses
    the SDL. Some time ago someone created an adaptor that lets you use
    your old Atari controllers with your computer through the USB port.
    Some of the Atari controllers require special handling by the emulator,
    so it would be nice, if it would be possible to detect if any of the
    controllers connected to the computer is this adaptor.
    
    SDL would allow that with the SDL_JoystickName function, but unfortunately
    it doesn't work properly on Windows. On Linux and MacOSX this function
    returns the name of the controller, but on Windows you'll only get the
    name of the joystick driver. Most joysticks nowadays use the generic
    Microsoft driver, so they all return the same name.
    
    In an old MSDN article
    (http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/dnarinput/html/msdn_extdirect.asp)
    Microsoft describes how to read out the OEM controller names from the registry.
    I have implemented this for the SDL controller handler on Windows,
    and now reading the joystick name works properly there too.
    
    --HG--
    extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40938
    fa46eb0b
Name
Last commit
Last update
docs Loading commit data...
include Loading commit data...
src Loading commit data...
test Loading commit data...
.cvsignore Loading commit data...
BUGS Loading commit data...
Borland.html Loading commit data...
Borland.zip Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
CWprojects.sea.bin Loading commit data...
EpocBuildFiles.zip Loading commit data...
INSTALL Loading commit data...
MPWmake.sea.bin Loading commit data...
Makefile.am Loading commit data...
Makefile.dc Loading commit data...
PBProjects.tar.gz Loading commit data...
README Loading commit data...
README-SDL.txt Loading commit data...
README.AmigaOS Loading commit data...
README.CVS Loading commit data...
README.DC Loading commit data...
README.Epoc Loading commit data...
README.MacOS Loading commit data...
README.MacOSX Loading commit data...
README.MiNT Loading commit data...
README.NanoX Loading commit data...
README.PicoGUI Loading commit data...
README.QNX Loading commit data...
README.Qtopia Loading commit data...
README.WinCE Loading commit data...
SDL.qpg.in Loading commit data...
SDL.spec.in Loading commit data...
TODO Loading commit data...
VisualC.html Loading commit data...
VisualC.zip Loading commit data...
VisualC7.zip Loading commit data...
VisualCE.zip Loading commit data...
WhatsNew Loading commit data...
acinclude.m4 Loading commit data...
autogen.sh Loading commit data...
config.guess Loading commit data...
config.sub Loading commit data...
configure.in Loading commit data...
docs.html Loading commit data...
ltmain.sh Loading commit data...
sdl-config.in Loading commit data...
sdl.m4 Loading commit data...
strip_fPIC.sh Loading commit data...