Old Pump hack not needed; this crash doesn't happen with the

old DI interface the SDL uses.
This commit is contained in:
Glenn Maynard
2002-11-29 21:57:47 +00:00
parent 4a588230e1
commit 264027fea3
-15
View File
@@ -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))