SDL1.2 input handling is incompatible with Wayland

General information and assistance with DOSBox.

SDL1.2 input handling is incompatible with Wayland

Postby kjliew » 2019-5-13 @ 17:42

Since Wayland is now taking shape in the latest Linux distro with GNOME desktop, just make sure this is being acknowledged. For those who uses open-sourced drivers (Intel, AMDGPU, Nouveau) Wayland will likely be the default X session. So far I have found that arrow keys are completely screwed up on Wayland session. Switching to X11 session will have the issue resolved.

NVIDIA propriety blobs will always use X11 session as of now. I am not following the EGLStream vs GBM in-fighting, so things could have changed on how NVIDIA propriety blobs would eventually support Wayland.

QEMU built with SDL1.2 exhibits exactly the same issue, so this is not specific to DOSBox. QEMU dumped SDL1.2 in the latest 4.0.0 release.
kjliew
Member
 
Posts: 443
Joined: 2004-1-08 @ 03:03

Re: SDL1.2 input handling is incompatible with Wayland

Postby retardware » 2019-5-14 @ 06:22

kjliew wrote:So far I have found that arrow keys are completely screwed up on Wayland session. Switching to X11 session will have the issue resolved.


I strongly suspect that this could be related to Waylands' libinput. It breaks a lot of things in xorg's input system like modifier keys, function/special keys, mouse buttons etc.
retardware
Oldbie
 
Posts: 642
Joined: 2019-1-30 @ 02:00

Re: SDL1.2 input handling is incompatible with Wayland

Postby Qbix » 2019-5-14 @ 08:14

I read in a debian bug report that the usescancodes=false might improve the situation with Wayland
Water flows down the stream
How to ask questions the smart way!
User avatar
Qbix
DOSBox Author
 
Posts: 10893
Joined: 2002-11-27 @ 14:50
Location: Fryslan

Re: SDL1.2 input handling is incompatible with Wayland

Postby kjliew » 2019-5-14 @ 08:42

Qbix wrote:I read in a debian bug report that the usescancodes=false might improve the situation with Wayland

Thanks! That works, too, without having to fallback to X11 session.
kjliew
Member
 
Posts: 443
Joined: 2004-1-08 @ 03:03

Re: SDL1.2 input handling is incompatible with Wayland

Postby Qbix » 2019-5-14 @ 12:30

kjliew wrote:
Qbix wrote:I read in a debian bug report that the usescancodes=false might improve the situation with Wayland

Thanks! That works, too, without having to fallback to X11 session.


Glad to hear that. Here is the bug report, I was talking about:
https://bugs.debian.org/cgi-bin/bugrepo ... bug=928046
Water flows down the stream
How to ask questions the smart way!
User avatar
Qbix
DOSBox Author
 
Posts: 10893
Joined: 2002-11-27 @ 14:50
Location: Fryslan


Return to DOSBox General

Who is online

Users browsing this forum: No registered users and 2 guests