ValveSoftware / csgo-osx-linux

Counter-Strike: Global Offensive
http://counter-strike.net
787 stars 69 forks source link

Cannot change keyboard layout in CS2 #3327

Open YakoYakoYokuYoku opened 1 year ago

YakoYakoYokuYoku commented 1 year ago

Your system information

Please describe your issue in as much detail as possible:

I expected to switch my layout from Dvorak to QWERTY in-game but it doesn't follow along, I still remain with Dvorak for button layout. CS:GO had let me use Dvorak as if I was playing with QWERTY, Minecraft nowadays does a similar thing too.

Steps for reproducing this issue:

  1. Start Counter Strike 2 with Dvorak selected.
  2. Type ,AOE (WASD in QWERTY) and see that only A is taken into account.
  3. Change keyboard layouts, both shortcut and tray icon, the game continues as if it was Dvorak and not QWERTY.
leotrubach commented 1 year ago

Yes same here, I have cyrillic layout and just have to quickly quit and reconnect

YakoYakoYokuYoku commented 1 year ago

Now that I think about it, I had the same issue in Blender. IIRC the dependencies, related to keyboard handling, that are in both Blender and CS2 are xkb and libSDL. So the issue might come from one of these two and not CS2.

uunnxx commented 1 year ago

I have this problem as well. Input method fcitx, I have Japanese, Cyrillic, Dvorak. On CS:GO I had no problems at all (I could have only with Japanese), but in CS2, CS2 can't recognize keyboard layout... many other program developers use keyboard code, instead of layout.