mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 20:59:54 +00:00
dinput: Ignore events from extra joystick buttons.
This commit is contained in:
parent
bdbc2783a1
commit
9227e25660
@ -698,6 +698,8 @@ static void joy_polldev(JoystickImpl *This) {
|
||||
jse.type,jse.number,jse.value);
|
||||
if (jse.type & JS_EVENT_BUTTON)
|
||||
{
|
||||
if (jse.number >= This->devcaps.dwButtons) return;
|
||||
|
||||
inst_id = DIDFT_MAKEINSTANCE(jse.number) | DIDFT_PSHBUTTON;
|
||||
This->js.rgbButtons[jse.number] = value = jse.value ? 0x80 : 0x00;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user