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

Linux: azerty keyboard not supported #338

Open
legluondunet opened this issue May 20, 2024 · 15 comments
Open

Linux: azerty keyboard not supported #338

legluondunet opened this issue May 20, 2024 · 15 comments

Comments

@legluondunet
Copy link

legluondunet commented May 20, 2024

Hello,
I have an azerty keyboard and when I press ² key, the console does not appear.
² is our tilde key:

image

Does Q-Zandronum not support local keyboard on Linux?
Others issues related to local keyboard:

  • I can maximize HUD but key to reduce it is inactive, workaround: edit zandronum.ini (screenblocks=10)
  • actions keys:
    forward: we use Z instead of W
    strafe left: we use Q instead of A

Thank you for your help

@IgeNiaI
Copy link
Owner

IgeNiaI commented May 20, 2024

Unfortunately this engine is pretty old at it's core. We can't add local keyboard support without major refactors. You should be able to rebind your actions in settings though, including console. You'll need to look in old settings for screen size. I'll add that to next release.

@IgeNiaI
Copy link
Owner

IgeNiaI commented May 20, 2024

I just noticed that screen size controls are not there in old settings either. I'll need to add them to both then. You'll need to use the bind console command to set your own binds. The screen size commands are sizeup and sizedown

@legluondunet
Copy link
Author

I just tried the Windows port with Wine on Linux and it supports my azerty keyboard?

@IgeNiaI
Copy link
Owner

IgeNiaI commented May 20, 2024

Well, I don't know why. I didn't work on this part of the engine. I guess Windows and Linux send different info to the game when you press the button.

@IgeNiaI
Copy link
Owner

IgeNiaI commented May 20, 2024

Have you tried rebinding them manually yet?

@legluondunet
Copy link
Author

legluondunet commented May 20, 2024

I already did it for the actions key and console, it's easy to modify from the ingame settings.
But I don't know how to rebind minimize HUD.
And can not assign ² key to anything in QCDE, the key is ignored, sign it doesn't support local keyboard, only qwerty...

@IgeNiaI
Copy link
Owner

IgeNiaI commented May 20, 2024

Use the bind command for that. It goes as follows: bind - sizedown. Replace - with your key.

@legluondunet
Copy link
Author

bind - sizedown

It says:
image

@legluondunet
Copy link
Author

it's strange, Zandronum is a fork from GZDoom and Q-Zandronum is a fork of Zandronum and GZDoom supports local keyboard.

@IgeNiaI
Copy link
Owner

IgeNiaI commented May 20, 2024

It's a fork of very old GZDoom, the one from 2015

@IgeNiaI
Copy link
Owner

IgeNiaI commented May 20, 2024

That's odd, because ] works fine. Try binding to [ and ] instead.

@legluondunet
Copy link
Author

@IgeNiaI we need more than a workaround for this issue, all people that does not use a qwerty keyboard will encounter the same inconveniences than me. Q-Zandronum on Linux needs support for local keyboard.

@IgeNiaI
Copy link
Owner

IgeNiaI commented May 20, 2024

I'll see what I can do, but I can't invest a lot of time into this anymore. It's a hobby project after all.

@legluondunet
Copy link
Author

Today I tested some mods with Zandronum and I reproduced on Linux all issues I encounter with Q-Zandronum:

  • cursor not visible, need to be set to system cursor
  • azerty keyboard not supported, some key are not recognized nor accepted

Like Q-Zandronum, I can not reproduce this issue with the Zandronum Windows version.

@kultasakaali
Copy link

This is an ages old issue that's been with us since the Zandronum days.
I know, you didn't want a workaround, but I still thought to share what I do for the meantime.

Before launching the game I switch to US keyboard layout with hotkeys and switch back after I exit. You can also write a bash script to do this for you automatically. That way you'll have access to all keys in game. Check if your distro has a US AZERTY layout, that might work too.

I'm using a QWERTZ hungarian layout which behaves pretty much like yours when trying to bind them directly from the console. However even in Windows I have to bind my keys according to the US layout (binding through the menus will substitue the US layout equivalent though, whereas in Linux it won't). For example I use the key 'Ű' to spectate which gets saved in the config as \. The main difference between Windows and Linux on my system is that after binding spectate to \ it works on Windows whereas it doesn't on Linux, unless you switch layouts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants