Commit e63f5113 authored by Rémi Bernon's avatar Rémi Bernon Committed by Vitaly Lipatov

user32: Support sending RIM_TYPEMOUSE through __wine_send_input.

parent bd2410d7
......@@ -2452,6 +2452,12 @@ NTSTATUS send_hardware_message( HWND hwnd, const INPUT *input, const RAWINPUT *r
req->input.hw.rawinput.type = rawinput->header.dwType;
switch (rawinput->header.dwType)
{
case RIM_TYPEMOUSE:
req->input.hw.rawinput.mouse.x = rawinput->data.mouse.lLastX;
req->input.hw.rawinput.mouse.y = rawinput->data.mouse.lLastY;
req->input.hw.rawinput.mouse.data = rawinput->data.mouse.ulRawButtons;
req->input.hw.lparam = rawinput->data.mouse.usFlags;
break;
case RIM_TYPEHID:
req->input.hw.rawinput.hid.device = HandleToUlong( rawinput->header.hDevice );
req->input.hw.rawinput.hid.param = rawinput->header.wParam;
......
......@@ -2080,6 +2080,9 @@ static void queue_custom_hardware_message( struct desktop *desktop, user_handle_
msg_data->size = sizeof(*msg_data) + report_size;
msg_data->rawinput = input->hw.rawinput;
if (input->hw.msg == WM_INPUT && input->hw.rawinput.type == RIM_TYPEMOUSE)
msg_data->flags = input->hw.lparam;
enum_processes( queue_rawinput_message, &raw_msg );
if (raw_msg.foreground) release_object( raw_msg.foreground );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment