Skip to content

SDL input is buggy in version 2.16 and later #600

@necessarily-equal

Description

@necessarily-equal

How many people are affected, and in what cases

At least 3 people complained about it. They seem to be running Arch most of the time.

Description of the bug

The symptoms reported by @Viech included erratic movement, the weapon switching to blaster at the wrong time, and other "ghosts" keypress: the game was doing like if key that weren't pressed were pressed.

I didn't manage to reproduce the ghosts keypress, but I did notice the following NOTICE with SDL 2.0.20:

Antoine [bsuit] entered the game 
Com_QueueEvent: overflow 
Com_QueueEvent: overflow 
Com_QueueEvent: overflow 
Com_QueueEvent: overflow 
Com_QueueEvent: overflow 
Com_QueueEvent: overflow 
Com_QueueEvent: overflow 
Com_QueueEvent: overflow 
Com_QueueEvent: overflow 
Com_QueueEvent: overflow [further messages like this will be suppressed] 

(exemple of) Steps to reproduce

On NixOS (with the experimental nix command): nix run github:necessarily-equal/nixpkgs/recent-sdl#unvanquished.

On other linux distros, install SDL 2.0.20 and recompile daemon against it.

I don't know if this affects other versions of SDL. 2.0.14 is known good, the versions between are still to be determined. @Viech would apparently also be using the .20.

I don't know if this affects non-linux platforms, or if those just don't have a recent-enough SDL.

[EDIT:] this affects last-release daemon, and I would assume current master too.

On Linux, X11 vs Wayland doesn't seem to make any difference.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions