dinput8/tests: Make input helper function more versatile.
commitd3e7e0426cf5544b0fcec210304cfa6898c06cda
authorArkadiusz Hiler <ahiler@codeweavers.com>
Mon, 8 Mar 2021 12:36:08 +0000 (8 14:36 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 10 Mar 2021 19:44:10 +0000 (10 20:44 +0100)
treea95a29e39847e93268c3d26d41c8cf19d4c179a4
parent773329e3bb0a60b6e6d81878cb1e3d66637977ac
dinput8/tests: Make input helper function more versatile.

test_device_input() now takes properly sized appdata expected value and
can be used to send any keyboard event. It also drains device's queue so
it can be called multiple times on a single device instance.

Signed-off-by: Arkadiusz Hiler <ahiler@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/dinput8/tests/device.c