mastercomfig / tf2-patches

Team Fortress 2, but with a lot of fixes, QoL improvements and performance optimizations!
Other
218 stars 27 forks source link

Open console keybind not working before joining a server with swedish keyboard #101

Open henke37 opened 4 years ago

henke37 commented 4 years ago

Describe the bug Pressing the key set to open the console does nothing until after I've joined a server.

How you encountered the issue Just trying to press the key on the main menu.

This is very likely related to keyboard layouts, since I'm on a Swedish keyboard that puts a § key (I use it for the console bind) where US keyboards puts the backtick.

micwoj92 commented 4 years ago

What is your operating system?

Yttrium-tYcLief commented 4 years ago

This happens sometimes in TF2, not just on Swedish layouts, but also my US ANSI one. Seems to only happen occasionally when the game starts, on a per-session basis; relaunching fixes it instantly.

Of course, my issue might actually be a separate bug.

henke37 commented 4 years ago

I've experienced it on Windows 7, but I also experience it on my current Windows 10 box.

micwoj92 commented 4 years ago

Weird, I have in after alt tabbing on Gnu/Linux. It also sometimes makes your mouse not work properly. I think @wgetJane also had something like that but I believe that on these systems you could fix it with compositor. I will open issue for that if there will be working linux build so I can test (also recent changes regarding alt-tabbing[but now windows only :( ], so that might be fixed already).

micwoj92 commented 4 years ago

tag https://github.com/ValveSoftware/Source-1-Games/issues/1756

Juesto commented 4 years ago

This happens sometimes in TF2, not just on Swedish layouts, but also my US ANSI one. Seems to only happen occasionally when the game starts, on a per-session basis; relaunching fixes it instantly.

Of course, my issue might actually be a separate bug.

you need to launch the game with the us keyboard as default or set it as default layout for your OS. the fix for this is somewhere within inputsystem, this is a bug by design. two problems: the ` must not be a dead key and the oem key must match

this entire issue happens on all keyboard layouts that are not US English.

RicochetYT commented 4 years ago

This has happened to me as well. As micwoj said, this is an alt-tab bug and also occurs on Windows. Sometimes when you alt-tab in and out of the game, the game is left thinking alt is still being pressed (usually) which makes you unable to open the console. This used to confuse me and I'd relaunch my game to fix the issue but now you can just click alt while in-game and it fixes it for me. This used to be even worse as the game would use the mouse movement as your movement keys (you can see this by holding alt and moving your mouse in TF2 and some other Source games, I presume this was something related to the implementation of controllers but I have no clue.)

micwoj92 commented 4 years ago

@Juesto my layout on my desktop is US English.

Juesto commented 4 years ago

press alt again to fix the issue. i had the issue with windowed when alt tabbing with the game frozen by either loading or else. just lose focus and restore it to resolve the issue