[Bug 35954] Dead Space (Steam) crashes on startup (some Microsoft keyboard and mouse devices are incorrectly recognised as joystick, reporting nonsense caps/data)

wine-bugs at winehq.org wine-bugs at winehq.org
Fri Apr 25 11:42:13 CDT 2014


http://bugs.winehq.org/show_bug.cgi?id=35954

--- Comment #16 from Anastasius Focht <focht at gmx.net> ---
Hello Bruno,

--- quote ---
Do you have any idea on how to detect it's invalid? Is it due to the unknown
device type?
--- quote ---

Well, the 'unknown' message is actually a bug in Wine's '_dump_DIDEVCAPS'
helper.
You can't simply compare 'dwDevType' with DIDEVTYPE_* constants when:

1) DIRECTINPUT_VERSION decides about how the low byte is interpreted (either
DIDEVTYPE_* or DI8DEVTYPE_*)

2) subtype is included (high byte) -> you need GET_DIDEVICE_TYPE() for low byte
extraction

I was thinking about that big number of axis and buttons ... but that seems not
reliable enough for identifying invalid joy devices.
For example there are of various joysticks/game pads with 8+ axis (DIJOFS_X,
DIJOFS_Y, DIJOFS_Z, DIJOFS_RX, DIJOFS_RY, DIJOFS_RZ, DIJOFS_SLIDER0,
DIJOFS_SLIDER1).

MSDN:
http://msdn.microsoft.com/en-us/library/windows/desktop/microsoft.directx_sdk.reference.dideviceinstance%28v=vs.85%29.aspx
(list in remarks section).

Regards

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list