patch from billiard to attempt a fix for the broken DI8 enumeration.
This commit is contained in:
parent
369482d15b
commit
29c3cee6b1
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue