From 264027fea394d6b7053fd92b814b19db4685f68f Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 29 Nov 2002 21:57:47 +0000 Subject: [PATCH] Old Pump hack not needed; this crash doesn't happen with the old DI interface the SDL uses. --- stepmania/src/RageInput.cpp | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/stepmania/src/RageInput.cpp b/stepmania/src/RageInput.cpp index 2b415d5569..bf4d58a17d 100644 --- a/stepmania/src/RageInput.cpp +++ b/stepmania/src/RageInput.cpp @@ -342,21 +342,6 @@ RageInput::RageInput() // m_Pumps = new pump_t[NUM_PUMPS]; -// { -// /* Nasty hack to work around a bug in DirectInput8: Pump pads -// * crash EnumDevices. Prevent this by opening the pad with -// * exclusive access while we enumerate, then closing it when -// * we finish. We don't do anything with this; we open it -// * for real down below, since we don't *really* want to open -// * the pad with exclusive access. (I also don't want to introduce -// * dependencies, such as "pump must be initialized before joysticks", -// * so this doesn't bite us again down the road.) */ -// pump_t m_TempPumps[NUM_PUMPS]; -// for(int pumpNo = 0; pumpNo < NUM_PUMPS; ++pumpNo) -// m_TempPumps[pumpNo].init(pumpNo, false); -// -// } - for(int pumpNo = 0; pumpNo < NUM_PUMPS; ++pumpNo) { if(m_Pumps[pumpNo].init(pumpNo))