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

Non-qwerty keyboard layout support on Linux #284

Closed
Walkman100 opened this issue Aug 19, 2017 · 8 comments
Closed

Non-qwerty keyboard layout support on Linux #284

Walkman100 opened this issue Aug 19, 2017 · 8 comments
Labels

Comments

@Walkman100
Copy link

I have a Dvorak keyboard, and have the system set up to use it, but OpenDune gets my input as if it's Qwerty, typing "Walkman":
image
typing "None":
image
(I have no idea what the answers to any of these questions are btw)

My input config:
image

Using Linux Mint 17.3 Rosa, Qt: 4.8.6, KDE Development Platform: 4.14.2, Plasma Desktop Shell: 4.11.11, IBus 1.5.5

Using OpenDune v0.8 (from the title bar, opendune --version starts up the game as normal) from release v0.8 with data files from Abandonia

> uname -a
Linux WalkmanLM17 3.19.0-32-generic #37~14.04.1-Ubuntu SMP Thu Oct 22 09:41:40 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
@Walkman100
Copy link
Author

Walkman100 commented Aug 19, 2017

I've encountered a few other bugs, should I make issues for them? I won't bother if no one's working on this or they won't help anyone. I have no music, and some of the arrow keys don't work as expected (#286). I'd also like to request a few features, like command-line support for options (#287), skipping the cutscene at the beginning, key rebinding, setting the game zoom factor in the game settings e.t.c.

@Walkman100
Copy link
Author

Also fullscreen bugs out pretty badly, it disables the keyboard until I restart the game, and it doesn't fill up the screen or cover the windows beneath it, so I see parts of the underlying window around the border of the game.

@miniupnp
Copy link
Contributor

miniupnp commented Sep 3, 2017

I don't know if the original Dune II supports non US-QWERTY keyboard layouts.
We are using code translated from the original Dune II
I will have a look at what it is possible to do.

By the way, are you using SDL or SDL2 ?

About other bugs, please open other issues.

@miniupnp
Copy link
Contributor

miniupnp commented Sep 3, 2017

@Walkman100
Copy link
Author

Sorry about the late reply.
I'm using SDL2:

> apt show libsdl2-2.0-0
Package: libsdl2-2.0-0
State: installed

@miniupnp
Copy link
Contributor

miniupnp commented Nov 3, 2017

@Walkman100 have you tried the original Dune II game with your keyboard (in DOS or with DOSBox) ?

@Walkman100 Walkman100 changed the title Non-qwerty keyboard layout support Non-qwerty keyboard layout support on Linux Nov 7, 2017
@Walkman100
Copy link
Author

Just tested this on Windows, it gets my keyboard input fine. No I haven't tried the original Dune II in DOSBox, however I do remember DOSBox on my Linux install got my keyboard input as if I was using a Qwerty layout too... hmm...

@miniupnp
Copy link
Contributor

Dune II / OpenDUNE is using its own code to translate XT/AT keyboard scancodes to it's how key codes and then ASCII values :
https://github.com/miniupnp/OpenDUNE/blob/fa9c2e4bb7c62b9eae9eb4d2f4cec2d0092f5c55/src/input/input.c#L61
It is using the US QWERTY Keyboard layout.

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

No branches or pull requests

2 participants