dinput: COM cleanup - use proper interface instead of typecasting This when calling queue_event.

oldstable
Vitaliy Margolen 2011-01-09 15:43:17 -07:00 committed by Alexandre Julliard
parent b66e00cb09
commit 0b99bf3edb
4 changed files with 5 additions and 5 deletions

View File

@ -615,7 +615,7 @@ static void joy_polldev(LPDIRECTINPUTDEVICE8A iface)
}
}
if (inst_id >= 0)
queue_event((LPDIRECTINPUTDEVICE8A)This, inst_id,
queue_event(iface, inst_id,
value, jse.time, This->generic.base.dinput->evsequence++);
}
}

View File

@ -824,7 +824,7 @@ static void joy_polldev(LPDIRECTINPUTDEVICE8A iface)
break;
}
if (inst_id >= 0)
queue_event((LPDIRECTINPUTDEVICE8A)This, inst_id,
queue_event(iface, inst_id,
value, ie.time.tv_usec, This->generic.base.dinput->evsequence++);
}
}

View File

@ -108,7 +108,7 @@ static int KeyboardCallback( LPDIRECTINPUTDEVICE8A iface, WPARAM wparam, LPARAM
TRACE(" setting %02X to %02X\n", dik_code, This->DInputKeyState[dik_code]);
EnterCriticalSection(&This->base.crit);
queue_event((LPDIRECTINPUTDEVICE8A)This, DIDFT_MAKEINSTANCE(dik_code) | DIDFT_PSHBUTTON,
queue_event(iface, DIDFT_MAKEINSTANCE(dik_code) | DIDFT_PSHBUTTON,
new_diks, hook->time, This->base.dinput->evsequence++);
LeaveCriticalSection(&This->base.crit);

View File

@ -324,7 +324,7 @@ static int dinput_mouse_hook( LPDIRECTINPUTDEVICE8A iface, WPARAM wparam, LPARAM
{
/* Already have X, need to queue it */
if (inst_id != -1)
queue_event((LPDIRECTINPUTDEVICE8A)This, inst_id,
queue_event(iface, inst_id,
wdata, GetCurrentTime(), This->base.dinput->evsequence);
inst_id = DIDFT_MAKEINSTANCE(WINE_MOUSE_Y_AXIS_INSTANCE) | DIDFT_RELAXIS;
wdata = pt1.y;
@ -379,7 +379,7 @@ static int dinput_mouse_hook( LPDIRECTINPUTDEVICE8A iface, WPARAM wparam, LPARAM
if (inst_id != -1)
{
_dump_mouse_state(&This->m_state);
queue_event((LPDIRECTINPUTDEVICE8A)This, inst_id,
queue_event(iface, inst_id,
wdata, GetCurrentTime(), This->base.dinput->evsequence++);
}