From 5561a158d04ef51a891843c1ed3515b56a890a42 Mon Sep 17 00:00:00 2001 From: squall-leonhart Date: Thu, 26 Aug 2010 07:08:25 +0000 Subject: [PATCH] patch from billiard to attempt a fix for the broken DI8 enumeration. git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@948 a31d4220-a93d-0410-bf67-fe4944624d44 --- src/win32/DirectInput.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/win32/DirectInput.cpp b/src/win32/DirectInput.cpp index 3f8e5787..860e1d70 100644 --- a/src/win32/DirectInput.cpp +++ b/src/win32/DirectInput.cpp @@ -782,7 +782,7 @@ CString DirectInput::getKeyName(LONG_PTR key) winBuffer = di.tszName; } else if (d < numDevices) { if (k < 16) { - if (k < 4) { + /*if (k < 4) { switch (k) { case 0: winBuffer.Format(winResLoadString(IDS_JOY_LEFT), d); @@ -797,7 +797,7 @@ CString DirectInput::getKeyName(LONG_PTR key) winBuffer.Format(winResLoadString(IDS_JOY_DOWN), d); break; } - } else { + } else */{ pDevices[d].device->GetObjectInfo(&di, pDevices[d].axis[k>>1].offset, DIPH_BYOFFSET);