[RFC PATCH] winex11.drv: Use a fixed X11 keycode to Windows scancode table.

Alexandre Julliard julliard at winehq.org
Wed Oct 14 15:02:03 CDT 2020


Rémi Bernon <rbernon at codeweavers.com> writes:

> X11 keycodes are just Linux keycodes + 8 nowadays according to evdev or
> libinput drivers, and the conversion to Windows scancodes can be much
> simpler than what we currently do.
>
> Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
> ---
>
> I'm sending this as RFC because I'd like to have some feedback, possibly
> from people with exotic keyboards.
>
> For me and my FR AZERTY keyboard, this fixes all the key mapping issues,
> such as the 7/è top row keys for instance [1], and I don't understand
> why we have to go through the layout detection code to find X11 keycode
> to Windows scancode mapping.
>
> There's a bit of mapping to do because higher keycodes don't always
> match between Windows and Linux, but that's pretty straightfoward.

It sort of defeats the purpose of using X11 if you assume that you are
always running directly on the local Linux server. In particular VNC is
sending different scancodes, and of course a remote server may not be a
Linux box at all.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list