Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lost keypress on Wayland #61154

Closed
schauveau opened this issue Sep 20, 2022 · 7 comments
Closed

lost keypress on Wayland #61154

schauveau opened this issue Sep 20, 2022 · 7 comments
Labels
Controls / Input Keyboard, mouse, keybindings, input UI, etc. OS: Linux Issues related to Linux operating system (S1 - Need confirmation) Report waiting on confirmation of reproducibility SDL: Tiles / Sound Tiles visual interface and sounds. stale Closed for lack of activity, but still valid.

Comments

@schauveau
Copy link
Contributor

Describe the bug

I am running a recent git version as a Wayland application. Everything appears to works fine except that pressed keys are not always detected when a key was already pressed. It is as if a key release event was invalidating all keys that are currently pressed.

Steps to reproduce

  1. Start CDDA as a native Wayland application by setting SDL_VIDEODRIVER=wayland
  2. Load a game and position the character so that it can move freely
  3. Press the RIGHT key.
  4. Press the LEFT key while keeping the RIGHT key pressed.
  5. Release the RIGHT key while keeping the LEFT key pressed.

The character stops moving even though the LEFT key is still pressed.

Expected behavior

The character should start moving to the LEFT

The X11 version does that which is, imho, the correct behavior.

Screenshots

No response

Versions and configuration

  • OS: Linux
    • OS Version: Distributor ID: Debian; Description: Debian GNU/Linux bookworm/sid; Release: unstable; Codename: sid;
    • Wayland Compositor: Sway
  • Game Version: 0.F-11358-gcdcb0713fe [64-bit]
  • Graphics Version: Tiles
  • Game Language: English [en]
  • Mods loaded: [
    Dark Days Ahead [dda],
    Disable NPC Needs [no_npc_food],
    No Fungal Growth [no_fungal_growth],
    Bionic Professions [package_bionic_professions],
    sees-player, run, crouch, bleed icons, retrodays [sees_player_retro]
    ]

Additional context

No response

@schauveau schauveau added the (S1 - Need confirmation) Report waiting on confirmation of reproducibility label Sep 20, 2022
@BrettDong BrettDong added SDL: Tiles / Sound Tiles visual interface and sounds. OS: Linux Issues related to Linux operating system Controls / Input Keyboard, mouse, keybindings, input UI, etc. labels Sep 20, 2022
@ZhilkinSerg
Copy link
Contributor

This is probably something to be fixed in SDL/Wayland.

@schauveau
Copy link
Contributor Author

Probably! I can reproduce the behavior with this small SDL code.
sdlkey.cc.txt
I will search in the SDL bug reports.

@sonphantrung
Copy link
Contributor

As the issue mentioned above is now closed, should we also close this?

@ThePeiLin
Copy link

It is still an issue in the experimental build 2022-12-09-0649

@ZhilkinSerg
Copy link
Contributor

It is still an issue in the experimental build 2022-12-09-0649

It depends on which SDL version you will use to compile the game.

@ThePeiLin
Copy link

Deleting or commenting line 3205 of the file sdltiles.cpp might solve this issue, but I don't know if that would cause any other problems.

cdda_bug

@github-actions
Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Please do not bump or comment on this issue unless you are actively working on it. Stale issues, and stale issues that are closed are still considered.

@github-actions github-actions bot added the stale Closed for lack of activity, but still valid. label Feb 26, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Controls / Input Keyboard, mouse, keybindings, input UI, etc. OS: Linux Issues related to Linux operating system (S1 - Need confirmation) Report waiting on confirmation of reproducibility SDL: Tiles / Sound Tiles visual interface and sounds. stale Closed for lack of activity, but still valid.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants