mirror of
https://github.com/reactos/reactos.git
synced 2025-04-22 13:10:39 +00:00
[DINPUT_WINETEST] Sync with Wine Staging 4.0. CORE-15682
This commit is contained in:
parent
98e62237b1
commit
a924dfff45
2 changed files with 13 additions and 0 deletions
|
@ -392,6 +392,16 @@ static BOOL CALLBACK enum_devices_callback(const DIDEVICEINSTANCEA *instance, vo
|
||||||
{
|
{
|
||||||
struct enum_devices_test *enum_test = context;
|
struct enum_devices_test *enum_test = context;
|
||||||
|
|
||||||
|
if ((instance->dwDevType & 0xff) == DIDEVTYPE_KEYBOARD ||
|
||||||
|
(instance->dwDevType & 0xff) == DIDEVTYPE_MOUSE) {
|
||||||
|
const char *device = ((instance->dwDevType & 0xff) ==
|
||||||
|
DIDEVTYPE_KEYBOARD) ? "Keyboard" : "Mouse";
|
||||||
|
ok(IsEqualGUID(&instance->guidInstance, &instance->guidProduct),
|
||||||
|
"%s guidInstance (%s) does not match guidProduct (%s)\n",
|
||||||
|
device, wine_dbgstr_guid(&instance->guidInstance),
|
||||||
|
wine_dbgstr_guid(&instance->guidProduct));
|
||||||
|
}
|
||||||
|
|
||||||
enum_test->device_count++;
|
enum_test->device_count++;
|
||||||
return enum_test->return_value;
|
return enum_test->return_value;
|
||||||
}
|
}
|
||||||
|
|
|
@ -411,6 +411,8 @@ static void test_dik_codes(IDirectInputA *dI, HWND hwnd, LANGID langid)
|
||||||
|
|
||||||
if (!PeekMessageA(&msg, hwnd, 0, 0, PM_REMOVE))
|
if (!PeekMessageA(&msg, hwnd, 0, 0, PM_REMOVE))
|
||||||
{
|
{
|
||||||
|
U(in).ki.dwFlags = KEYEVENTF_KEYUP;
|
||||||
|
SendInput(1, &in, sizeof(in));
|
||||||
win_skip("failed to queue keyboard event\n");
|
win_skip("failed to queue keyboard event\n");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -471,6 +473,7 @@ static void keyboard_tests(DWORD version)
|
||||||
hwnd = CreateWindowA("static", "Title", WS_OVERLAPPEDWINDOW | WS_VISIBLE, 10, 10, 200, 200,
|
hwnd = CreateWindowA("static", "Title", WS_OVERLAPPEDWINDOW | WS_VISIBLE, 10, 10, 200, 200,
|
||||||
NULL, NULL, NULL, NULL);
|
NULL, NULL, NULL, NULL);
|
||||||
ok(hwnd != NULL, "err: %d\n", GetLastError());
|
ok(hwnd != NULL, "err: %d\n", GetLastError());
|
||||||
|
SetForegroundWindow( hwnd );
|
||||||
|
|
||||||
if (hwnd)
|
if (hwnd)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue