patch from billiard to attempt a fix for the broken DI8 enumeration.

This commit is contained in:
squall-leonhart 2010-08-26 07:08:25 +00:00
parent 369482d15b
commit 29c3cee6b1
1 changed files with 2 additions and 2 deletions

View File

@ -782,7 +782,7 @@ CString DirectInput::getKeyName(LONG_PTR key)
winBuffer = di.tszName; winBuffer = di.tszName;
} else if (d < numDevices) { } else if (d < numDevices) {
if (k < 16) { if (k < 16) {
if (k < 4) { /*if (k < 4) {
switch (k) { switch (k) {
case 0: case 0:
winBuffer.Format(winResLoadString(IDS_JOY_LEFT), d); winBuffer.Format(winResLoadString(IDS_JOY_LEFT), d);
@ -797,7 +797,7 @@ CString DirectInput::getKeyName(LONG_PTR key)
winBuffer.Format(winResLoadString(IDS_JOY_DOWN), d); winBuffer.Format(winResLoadString(IDS_JOY_DOWN), d);
break; break;
} }
} else { } else */{
pDevices[d].device->GetObjectInfo(&di, pDevices[d].device->GetObjectInfo(&di,
pDevices[d].axis[k>>1].offset, pDevices[d].axis[k>>1].offset,
DIPH_BYOFFSET); DIPH_BYOFFSET);