Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[BUG] SDL keyboard event not generated #3383

@uhu68

Description

@uhu68

GZDoom version

gzdoom 4.14.2

Which game are you running with GZDoom?

Doom

What Operating System are you using?

Linux x86_64

Please describe your specific OS version

Opensuse Tumbleweed

Relevant hardware info

No response

Have you checked that no other similar issue already exists?

  • I have searched and not found similar issues.

A clear and concise description of what the bug is.

When running gzdoom on the Plasma-Wayland desktop, most input keyboard events are ignored. This is because gzdoom calls SDL_StartTextInput mode at the beginning. Note that the documentation for SDL3 says "On some platforms using this function shows the screen keyboard and/or activates an IME, which can prevent some key press events from being passed through." Maybe this is also true for SDL2, though not documented.

I attached a patch, which fixed that issue on my system:

sdlinput.txt

Steps to reproduce the behaviour.

Explain how to reproduce

  1. Start gzdoom on a Linux Plasma-Wayland system
  2. Start any game (e.g. Ultimate Doom or Doom 2)
  3. Try to move using the WASD keys; they will be ignored.

Your configuration

Provide a Log

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions