IgeNiaI / Q-Zandronum

A Zandronum 3.0 fork with improved netcode, configurable movement and many small tweaks
Other
76 stars 8 forks source link

Linux: azerty keyboard not supported #338

Open legluondunet opened 6 months ago

legluondunet commented 6 months ago

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:

Thank you for your help

IgeNiaI commented 6 months ago

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 commented 6 months ago

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 commented 6 months ago

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

IgeNiaI commented 6 months ago

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 commented 6 months ago

Have you tried rebinding them manually yet?

legluondunet commented 6 months ago

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 commented 6 months ago

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

legluondunet commented 6 months ago

bind - sizedown

It says: image

legluondunet commented 6 months ago

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

IgeNiaI commented 6 months ago

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

IgeNiaI commented 6 months ago

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

legluondunet commented 6 months ago

@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 commented 6 months ago

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 commented 6 months ago

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

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

kultasakaali commented 6 months ago

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.