fallout2-ce
fallout2-ce copied to clipboard
Linux: game doesnt change for keyboard layouts other than QWERTY
Using colemak, I noticed that the game doesn't register other layouts than QWERTY and is quite annoying for playing, which is odd, considering other games I've played through wine/sourceports register other layouts.
having the same problem with dvorak. forked and testing code on kbdlayout branch. Pretty rusty with c++ and keycodes in general.
fallout-ce seems to be using scan codes for its inputs and layouts by language. Their doesn't seem to be a good library that maps keys to shift and ctrl so the scan codes mapped to those. I think this also boots ce with asciiized inputs for those pesky foreign characters.
The kbdlayout branch currently shadows the scancode mapping array as a hashmap keyed by sym code for english language keyboards. It also ends up dragging the keysym through four data structures. Not sure I'm happy with that solution, but so far seems to work for dvorak and ideally will work with colemak without creating non ascii keycodes.
various issues in main branch and v1.3, testing in v1.2 branch and can actually get in game. v1.3 isn't getting beyond character creation. working on that