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 - DirectInput joystick code
Summary: DirectInput joystick code
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: joystick (show other bugs)
Version: 2.0.0
Hardware: x86 Windows (All)
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-24 02:23 UTC by Sam Lantinga
Modified: 2006-05-21 13:30 UTC (History)
0 users

See Also:


Attachments
SDL_dxjoystick.c (14.43 KB, text/plain)
2006-01-24 02:23 UTC, Sam Lantinga
Details

Note You need to log in before you can comment on or make changes to this bug.
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.