ValveSoftware / Source-1-Games

Source 1 based games such as TF2 and Counter-Strike: Source
646 stars 74 forks source link

TF2 missing keyup for modifiers like alt when losing focus #2554

Open ICHx opened 6 years ago

ICHx commented 6 years ago

https://www.reddit.com/r/tf2/comments/2auofq/backspace_and_arrowkeys_wont_work_in_tf2/?st=jfouzzh2&sh=a1fd2a84

I ususally find tf2 fail to backspace/ type anything until pressing ctrl / alt once after alt+tabbing.
Please let me know if this is duplicated. :)

ICHx commented 6 years ago

System: Host: devops-pc Kernel: 4.15.15-1-MANJARO x86_64 bits: 64 Desktop: KDE Plasma 5.12.4 Distro: Manjaro Linux 17.1.7 Hakoila Machine: Type: Desktop System: ASUS product: All Series v: N/A serial: N/A Mobo: ASUSTeK model: H81M-E v: Rev X.0x serial: N/A UEFI: American Megatrends v: 3601 date: 12/15/2017 CPU: Dual Core: Intel Celeron G1840 type: MCP speed: 800 MHz min/max: 800/2800 MHz Graphics: Card-1: Intel Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller driver: i915 v: kernel
Card-2: NVIDIA GP108 [GeForce GT 1030] driver: nvidia v: 390.48
Display Server: x11 (X.Org 1.19.6) driver: intel,nvidia resolution: 1920x1080~60Hz
OpenGL: renderer: GeForce GT 1030/PCIe/SSE2 v: 4.6.0 NVIDIA 390.48
Network: Card-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller driver: r8169
Drives: HDD Total Size: 698.65 GiB used: 225.78 GiB (32.3%)
Info: Processes: 217 Uptime: 37 min Memory: 7.67 GiB used: 2.52 GiB (32.9%) Shell: bash inxi: 2.9.08

kisak-valve commented 6 years ago

Hello @ICHx, my understanding is that this is common to all SDL applications, because your DE stops sending keyboard input to the game after the window has lost focus. Assigning an SDL dev.

FindTheBorealis commented 6 years ago

The Windows version of TF2 has a similar issue where backspace doesn't work until you alt tab out of the program and back.

ghost commented 6 years ago

As it was mentioned in that thread, changing keyboard layout when outside of TF2 and changing back to it (Win+Space) fixes the issue, at least on Windows.

nightsky30 commented 6 years ago

Is this perhaps a different manifestation of what is seen in #2536 ??

ICHx commented 6 years ago

Looks similar, sometimes the game think ALT is pressed, making mouse movement strafes

Ashetf2 commented 2 years ago

@kisak-valve could you remove the Linux tag? This doesn't happen in Linux only.