ValveSoftware / Source-1-Games

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

[TF2] play/pause button interpreted as as "G" key #1984

Open cob16 opened 8 years ago

cob16 commented 8 years ago

Description:

play/pause button (included on some keyboards) will be seen by source engine as the G key. In tf2 this is especially bad due to +taunt being in bound to it.

Steps to produce

expected result: nothing

Workaround

The only workaround is to not bind anything to g at the moment (in console "unbind g")

Link to thread with users talking about the bug from now to 2 years ago http://www.teamfortress.tv/13497/play-pause-causes-character-to-taunt-in-tf2

System information

Computer Information: Manufacturer: To Be Filled By O.E.M. Model: To Be Filled By O.E.M. Form Factor: Desktop No Touch Input Detected

Processor Information: CPU Vendor: GenuineIntel CPU Family: 0x6 CPU Model: 0x3a CPU Stepping: 0x9 CPU Type: 0x0 Speed: 3400 Mhz 4 logical processors 4 physical processors HyperThreading: Unsupported FCMOV: Supported SSE2: Supported SSE3: Supported SSSE3: Supported SSE4a: Unsupported SSE41: Supported SSE42: Supported AES: Supported AVX: Supported CMPXCHG16B: Supported LAHF/SAHF: Supported PrefetchW: Supported

Network Information: Network Speed:

Operating System Version: Windows 10 (64 bit) NTFS: Supported Crypto Provider Codes: Supported 311 0x0 0x0 0x0

Video Card: Driver: Intel(R) HD Graphics 4000

DirectX Driver Name:  aticfx32.dll
Driver Version:  10.18.10.4276
DirectX Driver Version:  8.17.10.1452
Driver Date: 17 Aug 2015
OpenGL Version: 4.5
Desktop Color Depth: 32 bits per pixel
Monitor Refresh Rate: 60 Hz
DirectX Card: AMD Radeon R9 200 Series
VendorID:  0x1002
DeviceID:  0x67b1
Number of Monitors:  2
Number of Logical Video Cards:  2
No SLI or Crossfire Detected
Primary Display Resolution:  1920 x 1080
Desktop Resolution: 3840 x 1080
Primary Display Size: 20.51" x 11.54"  (23.50" diag)
                                        52.1cm x 29.3cm  (59.7cm diag)
Primary Bus Type Not Detected
Primary VRAM: -1984 MB
Supported MSAA Modes:  2x 4x 8x 

Sound card: Audio device: Headphones (2- High Definition

Memory: RAM: 8079 Mb

Miscellaneous: UI Language: English Microphone: Not set Media Type: Undetermined Total Hard Disk Space Available: 2618678 Mb Largest Free Hard Disk Block: 1386543 Mb OS Install Date: Jan 01 1970 Game Controller: None detected VR Headset: None detected

Note: This really sucks when you want to pause your music and you taunt :cry:

sauli01 commented 3 years ago

in counter strike it is worse tbh, as G is bound to drop weapon by default

felipecrs commented 2 years ago

Apex Legends and Titanfall games has the same issue, as it also uses Source.

Refs https://www.reddit.com/r/apexlegends/comments/lz1hgm/how_do_i_stop_my_pauseplay_button_from_pulling/

ruguysgoingtrickortreating commented 1 year ago

I'm not entirely sure this issue is of Source, as I found this thread via a google search for the same issue in Minecraft

NULLYUKI commented 1 year ago

It would be also good to know, what keyboards the players are using who are having this issue. And if they have the software for the keyboard installed.

sauli01 commented 1 year ago

It would be also good to know, what keyboards the players are using who are having this issue. And if they have the software for the keyboard installed.

I actually use razer mouse with one of the dpi buttons switched to play/pause from razer synapse. also happened with my old qpad keyboard if it was connected with usb, but with usb to ps2 adapter it did not. (Find this one extremely strange honestly) Also does not happen with my current keyboard (corsair k95 platinun, using icue if that matters)

NULLYUKI commented 1 year ago

It would be also good to know, what keyboards the players are using who are having this issue. And if they have the software for the keyboard installed.

I actually use razer mouse with one of the dpi buttons switched to play/pause from razer synapse. also happened with my old qpad keyboard if it was connected with usb, but with usb to ps2 adapter it did not. (Find this one extremely strange honestly) Also does not happen with my current keyboard (corsair k95 platinun, using icue if that matters)

Thank you for the reply!

I'm hoping that a player with the same issue will report it or have already reported it, that uses a keyboard which I might have. As I have many different keyboards laying around, most of them modern gaming keyboards from different known brands. This way, I could try to reproduce this issue.

But it would be also good if they can still add their system information in case the issue might be caused by a driver or something else.

sauli01 commented 1 year ago

Replying to https://github.com/ValveSoftware/Source-1-Games/issues/1984#issuecomment-1644798977

OS Name Microsoft Windows 10 Pro N Version 10.0.19045 Build 19045 Other OS Description Not Available OS Manufacturer Microsoft Corporation System Name DESKTOP-S0QR9F5 System Manufacturer Micro-Star International Co., Ltd. System Model MS-7B47 System Type x64-based PC System SKU Default string Processor Intel(R) Core(TM) i5-9600K CPU @ 3.70GHz, 3696 Mhz, 6 Core(s), 6 Logical Processor(s) BIOS Version/Date American Megatrends Inc. 1.B2, 20.04.2021 SMBIOS Version 2.8 Embedded Controller Version 255.255 BIOS Mode Legacy BaseBoard Manufacturer Micro-Star International Co., Ltd. BaseBoard Product Z370 TOMAHAWK (MS-7B47) BaseBoard Version 1.0 Platform Role Desktop Secure Boot State Unsupported PCR7 Configuration Binding Not Possible Boot Device \Device\HarddiskVolume1 Locale United States Hardware Abstraction Layer Version = "10.0.19041.2728" Installed Physical Memory (RAM) 32,0 GB Total Physical Memory 31,9 GB Available Physical Memory 21,0 GB Total Virtual Memory 36,7 GB Available Virtual Memory 18,8 GB Page File Space 4,75 GB Page File C:\pagefile.sys Kernel DMA Protection Off Virtualization-based security Not enabled Device Encryption Support Reasons for failed automatic device encryption: TPM is not usable, PCR7 binding is not supported, Hardware Security Test Interface failed and device is not Modern Standby, Un-allowed DMA capable bus/device(s) detected, TPM is not usable Hyper-V - VM Monitor Mode Extensions Yes Hyper-V - Second Level Address Translation Extensions Yes Hyper-V - Virtualization Enabled in Firmware Yes Hyper-V - Data Execution Protection Yes

gpu: nvidia rtx 3080 driver v.536.67 (game ready driver) (gigabyte aorus gaming box gpu gutted from the egpu enclosure working as any ordinary gpu)

keyboards tested: corsair k95 platinum: no G press (both hardware play/pause button and binding a different key to be play/pause from icue) (icue ver. 4.33.138) blackstorm mech: no G press (no software) razer blackwidow 2014: no G press when no software, counts as G press when synapse 2.21 installed (both native function pause and re-binding a key count when software downloaded) [makes no sense to me but razer being razer i quess] qpad mk-50: no G press when connected with usb, with ps2 connection counts as G press (native ps2 port, adadpter to usb. no software)

mice with a button bound to media play/pause from software razer deathadder elite: counts as G press (synapse 3.8.630.62814) steelseries rival (the original rival, no numbers): no G press (steelseries GG/engine)

did i get all the needed information here, or did i miss something

NULLYUKI commented 1 year ago

Replying to https://github.com/ValveSoftware/Source-1-Games/issues/1984#issuecomment-1644845350

Thank you very much!

No additional information is needed, as you posted everything that would be needed to try and identify the cause of the issue. I will use that information to research the reason why this issue is occurring for some players.

NULLYUKI commented 1 year ago

razer deathadder elite: counts as G press (synapse 3.8.630.62814)

Would it be possible if you could check what key is being binded when pressing the media play/pause button while changing the keybind of any function in the options?

sauli01 commented 1 year ago

shows as binding it to g, and g works for the bind you just set with the play/pause button. (note: it does not print out g letter in text boxes when pressing the play/pause bind) with the keyboard's built in media play/pause it does not bind anyhting, just becomes an non-bound key (even according to console with " key_listboundkeys " it does not show as taunt being bound to anything then)

NULLYUKI commented 1 year ago

Does this issue also occur when the "Razer Synapse" software is not running in the background?

sauli01 commented 1 year ago

Does this issue also occur when the "Razer Synapse" software is not running in the background?

neither deathadder elite or blackwidow 2014 have on board memory for macro's, so cant test that

but then again with blackwidow 2014 without synapse the already existing media pause does not cout as g, put with synapse running it does

NULLYUKI commented 1 year ago

but then again with blackwidow 2014 without synapse the already existing media pause does not cout as g, put with synapse running it does

Okay, I would then focus on the software. I probably would have to do a bit more in depth research on how the software functions with the media keys, as these softwares are causing this issue always apparently.

sauli01 commented 1 year ago

then what about qpad mk-50 counting it as g press when connected with ps2, but not when with usb. that keyboard has no software connected to it

NULLYUKI commented 1 year ago

then what about qpad mk-50 counting it as g press when connected with ps2, but not when with usb. that keyboard has no software connected to it

Then the focus has to be put on somewhere else regarding this issue.