Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Controller events detected as InputEventKey when Steam is open (due to Steam Input event injection) #75480

Closed
A-Totally-Normal-Name opened this issue Mar 29, 2023 · 2 comments · Fixed by #76045

Comments

@A-Totally-Normal-Name
Copy link

A-Totally-Normal-Name commented Mar 29, 2023

Godot version

4.0, 4.0.1

System information

Windows 10

Issue description

If Steam is open on your computer, input from a controller can be incorrectly detected as an InputEventKey. Closing Steam corrects this error.

Controller inputs should never be detected as an InputEventKey: According to the current documentation an InputEventKey is only for keyboard events.

Video demonstration: https://youtu.be/9krmPx9vYoc
Controller used: Dualshock 4

Steps to reproduce

  1. Run minimal reproduction project (or a script with the following code):
func _input(event : InputEvent) -> void:
	if event is InputEventKey:
		print ("Keyboard Event Detected")
  1. Test if "Keyboard Event Detected" prints on Controller input with Steam open vs. with Steam closed.

Minimal reproduction project

InputEventKey Controller Test.zip

@Calinou
Copy link
Member

Calinou commented Mar 29, 2023

This is most likely Steam Input injection doing its thing (so that games that lack controller support can receive keyboard events). Is there any way we could forcibly disable it for Godot by default?

In the meantime, you can disable Steam Input in the Steam settings or in per-game properties.

@Calinou
Copy link
Member

Calinou commented Apr 3, 2023

Quoting @Gramps from #75551 (comment):

The settings you're looking for are in the main Steam settings under Controller > General Controller Settings. If you turn off Configuration Support, you should start getting your inputs back.

@Calinou Calinou changed the title Controller events detected as InputEventKey when Steam is open Controller events detected as InputEventKey when Steam is open (due to Steam Input event injection) Apr 3, 2023
@YuriSizov YuriSizov added this to the 4.2 milestone Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants