We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 74

Summary: DirectInput joystick code
Product: SDL Reporter: Sam Lantinga <slouken>
Component: joystickAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 2.0.0   
Hardware: x86   
OS: Windows (All)   
Attachments: SDL_dxjoystick.c

Description Sam Lantinga 2006-01-24 02:23:06 UTC
Date: Sun, 15 Jun 2003 01:02:44 -0400
From: Glenn Maynard <g_sdl@zewt.org>
Subject: [SDL] DirectInput joystick code

I wrote some DX joystick code for SDL a while back.  It's been in use in
StepMania for some time.  I havn't had time to clean it up for inclusion,
particularly since the existing SDL code isn't set up well for using
DirectX input devices outside of the video tree and I havn't had the
urge to try to figure out how to do it right.  However, the code's been
sitting in SM for too long.  So, I'll attach it here in its current
state for whoever wants to use it, or clean it up for Sam (who expressed
interest in including it if it was polished up).

One issue is that it pulls in DInputCreate from the DX window code, and
assumes it's loaded.  You need to initialize video, and the driver that
was used must have been DX.  (It's OK if you use OpenGL, which doesn't
actually use DDraw, since it still initializes the library.)

I don't believe hats work; I don't have anything to test them with.
Comment 1 Sam Lantinga 2006-01-24 02:23:56 UTC
Created attachment 34 [details]
SDL_dxjoystick.c
Comment 2 Ryan C. Gordon 2006-01-27 11:23:22 UTC
Setting Sam as "QA Contact" on all bugs (even resolved ones) so he'll definitely be in the loop to any further discussion here about SDL.

--ryan.

Comment 3 Sam Lantinga 2006-05-21 12:49:38 UTC
This is in Subversion! :)
Comment 4 Sam Lantinga 2006-05-21 13:30:16 UTC
The changes have been moved to the 1.3 branch.