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
This commit is contained in:
squall-leonhart 2010-08-26 07:08:25 +00:00
parent 48b6f96e40
commit 5561a158d0
1 changed files with 2 additions and 2 deletions

View File

@ -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);