[PATCH v2 3/6] server: Add request for sending native raw-input messages.

Rémi Bernon rbernon at codeweavers.com
Tue Jul 23 02:50:12 CDT 2019


On Sat, 2019-06-29 at 22:26 -0400, Derek Lesho wrote:
> Signed-off-by: Derek Lesho <dereklesho52 at Gmail.com>
> ---
>  server/protocol.def | 28 ++++++++++++++++++++++++++++
>  server/queue.c      | 41 +++++++++++++++++++++++++++++++++++++++++
>  server/trace.c      | 21 +++++++++++++++++++++
>  tools/make_requests |  1 +
>  4 files changed, 91 insertions(+)
> 
> diff --git a/server/protocol.def b/server/protocol.def
> index 8b8a8a1512..3a6a202f49 100644
> --- a/server/protocol.def
> +++ b/server/protocol.def
> @@ -358,6 +358,29 @@ typedef union
>      } hw;
>  } hw_input_t;
>  
> +typedef union
> +{
> +    int type;
> +    struct
> +    {
> +        int type;                     /* RIM_TYPEMOUSE */
> +        int x;                        /* relative x movement */
> +        int y;                        /* relative y movement */
> +        unsigned short button_flags;  /* mouse button */
> +        unsigned short button_data;   /* event details */
> +    } mouse;
> +    struct
> +    {
> +        int type; /* RIM_TYPEKEYBOARD */
> +        /* TODO: fill this in if/when necessary */
> +    } kbd;
> +    struct
> +    {
> +        int type; /* RIM_TYPEHID */
> +        /* TODO: fill this in if/when necessary */
> +    } hid;
> +} hw_rawinput_t;

I'm still wondering if it should be merged with hw_input_t or not and
use the same send_hardware_message request for raw inputs and normal
inputs, but in any case this union should at least be used for the
rawinput field in struct hardware_msg_data (with the kbd fields added)
instead of duplicating it.
-- 
Rémi Bernon <rbernon at codeweavers.com>




More information about the wine-devel mailing list