Commit Graph

95 Commits

Author SHA1 Message Date
Zebediah Figura 2ed141d680 user32/tests: Test opening raw input devices.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-03 23:44:24 +02:00
Nikolay Sivov a476ae1991 server: Use KEYEVENTF_UNICODE mode only when virtual key code was not specified.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-01 14:41:39 +02:00
Nikolay Sivov 0b2fbab179 user32/tests: Add another test for KEYEVENTF_UNICODE mode.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-01 14:41:37 +02:00
Nikolay Sivov 4b13f859f7 user32/tests: Use SendInput() directly.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-01 14:41:36 +02:00
Louis Lenders 34408796b9 user32: Added GetPointerType stub.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45765
Signed-off-by: Vijay Kiran Kamuju <infyquest@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-29 18:46:25 +02:00
Andrew Eikum d1b19a2d0a user32: GetRawInputDeviceInfo uses characters for RIDI_DEVICENAME size.
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-06 18:28:20 +01:00
Sebastian Lackner 5ff6a11697 server: Improve handling of cursor position clipping for empty rectangle.
Based on a patch by Kevin Buhr.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=38791
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=42631
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-18 16:04:03 +01:00
Zhiyi Zhang bd730a5f41 user32: Check for null handle in GetRawInputData().
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46499
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-01-24 17:37:56 +01:00
Alexandre Julliard 542150afe5 user32/tests: Add tests for GetCurrentInputMessageSource().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-05 19:12:12 +01:00
Michael Stefaniuc 1694ab087a user32/tests: Use the available ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-28 18:27:20 +02:00
Zebediah Figura 7ae7fbcc91 user32/tests: Skip tests for window messages if we failed to receive foreground status.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-20 11:22:36 +02:00
Zebediah Figura f312758bf0 user32/tests: Ignore all non-keyboard messages in test_Input_blackbox().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-20 11:22:35 +02:00
Andrey Gusev daa4663980 user32/tests: Fix resource leak.
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-03 19:13:27 +01:00
Alex Henrie 7a39a7a3ae user32/tests: Recognize undefined characters in OemKeyScan tests.
This reverts commit 72ab2d5b07.

Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-29 09:59:49 +01:00
Alex Henrie 72ab2d5b07 user32/tests: Fix OemKeyScan failures with input method editors.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-28 21:36:55 +01:00
Rafał Harabień 5c2526a086 winex11.drv: Preserve last error in x11drv_thread_data().
Signed-off-by: Rafał Harabień <rafalh1992@o2.pl>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-17 17:44:05 +01:00
Andrey Gusev 70b8a2f86b user32/tests: Remove redundant comparison.
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-13 15:08:56 +02:00
Huw Davies cdf3872f59 user32/tests: Restore the mouse cursor to its original position.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-02 19:50:34 +01:00
Huw Davies e574350b62 user32/tests: Don't perform character lookup ToUnicode() tests on non-US keyboards.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-14 11:07:07 -06:00
Huw Davies b7c5ff05a7 user32: Implement OemKeyScan().
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-22 22:29:57 +09:00
Nikolay Sivov 6c8887b830 user32/tests: Fix indentation warnings on GCC 6.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-10 12:51:54 +09:00
Hugh McMaster c87a78bc94 user32/tests: Add tests for VK_SPACE, Shift-Space and Ctrl-Space.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-01 21:10:22 +09:00
Sebastian Lackner 8723d3455e server: Add fallback to desktop keystate in get_key_state wineserver call. 2015-07-10 15:07:45 +09:00
Sebastian Lackner 6019da2355 user32/tests: Add tests for calling GetKeyState from thread without message queue. 2015-07-10 15:05:40 +09:00
Huw Davies 10556c25e4 winex11: Fix ctrl-<symbol> to generate codes below 0x20 where necessary. 2015-05-28 22:44:11 +09:00
Bruno Jesus e0ba6d8fdb user32: Set the expected errors in GetRawInputDeviceList. 2015-05-27 13:54:37 +09:00
Bruno Jesus 1bba9674d9 user32/tests: Add tests for GetRawInputDeviceList. 2015-05-26 18:45:32 +09:00
Sebastian Lackner 4439cd433d server: attach_thread_input shouldn't create queues for foreign threads. 2015-05-18 19:59:28 +09:00
Aric Stewart 3599f956e2 server: Fixup input windows on thread_detach. 2015-05-06 20:54:55 +09:00
Aric Stewart bed7e69a14 server: Do not replace focus and active windows with NULL on thread_attach_input. 2015-04-23 17:48:33 +09:00
Sebastian Lackner 26c9ce5d0b user32/tests: Add tests for ToAscii. 2015-04-06 18:06:13 +09:00
Sebastian Lackner a2695810e7 user32/tests: Add tests for ToUnicodeEx with a NULL pointer as keystate. 2015-04-06 18:06:10 +09:00
Piotr Caban dfd2506736 user32/tests: Don't send mouse clicks to other process windows in input tests. 2015-03-26 14:21:00 +09:00
Nikolay Sivov 151694a0bc user32: Handle NULL argument in GetKeyboardLayoutNameW(). 2015-01-13 17:52:27 +01:00
Francois Gouget ea932fbcc1 Assorted spelling fixes. 2014-12-05 20:47:45 +01:00
Nikolay Sivov 3c24481dea user32/tests: Use win_skip() where appropriate. 2014-11-06 14:58:15 +09:00
Piotr Caban 3f1bbdcae3 server: Send mouse hardware messages to thread owning top-most window.
Also don't limit mouse message scope to top-most window when message
comes from SendInput or window that generated the event is
minimized/transparent.
2014-10-17 17:51:52 +09:00
Piotr Caban 2235c820a9 user32/tests: Add mouse SendInput tests when mouse events are captured. 2014-10-17 17:51:43 +09:00
Piotr Caban 65b09537b3 user32/tests: Add mouse SendInput tests. 2014-10-17 17:51:36 +09:00
Frédéric Delanoy bb2be17327 user32/tests: Use BOOL type where appropriate. 2013-11-05 11:16:00 +01:00
Dmitry Timoshkov 84a80215b9 user32/tests: Fix input tests compilation with __WINESRC__ defined. 2013-10-23 17:01:47 +02:00
Michael Stefaniuc 9463dba830 tests: Use the explicit LoadLibraryA function. 2013-10-02 11:02:21 +02:00
Alexandre Julliard f87191815d user32: Fix GetKeyNameText returned length. 2012-02-15 12:07:34 +01:00
Ken Thomases b5b9184dec user32/tests: Test that ToUnicode null-terminates the buffer if it's big enough. 2011-12-20 10:15:31 +01:00
Dmitry Timoshkov 7fb4e2ae45 user32: Add a test to make sure that SendInput sets a non-zero event time. 2011-03-04 16:26:00 +01:00
Marcus Meissner b0b77d4ba9 user32: Fixed some more side effect functions in assert() (Coverity). 2011-02-25 14:47:50 +01:00
Austin Lund c82aa505e9 user32/tests: Fix test failures by disabling IME when testing unicode input. 2010-11-29 19:52:06 +01:00
André Hentschel 37adf3a6be user32/tests: Remove obsolete comment. 2010-11-29 19:51:57 +01:00
Alexandre Julliard dfab8824c5 user32/tests: Make some variables static. 2010-10-01 13:37:44 +02:00
Paul Vriens 05765a0b0c user32/tests: Skip some tests on Win9x/WinMe. 2009-10-23 15:54:08 +02:00