-
-
Notifications
You must be signed in to change notification settings - Fork 21.7k
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
Issues with Input.get_joy_guid and Input.add_joy_mapping #39157
Comments
My apologies @madmiraal, I did search for similar issues, but didn't find those you mentioned. |
I built Godot from the master branch (commit 0f1da72) and the inverted axis is working as expected. The GUID (returned by |
Closing this issue as it is being addressed in #39172 |
This issue will be closed automatically when #39172 is merged. In the meantime, it should remain open; so others can find it. |
Oh, my apologies :) |
Godot version: v3.2.1.stable.official
OS: macOS Catalina v10.15.5
Other: SDL Gamepad Tool v2.0.7
Issue description:
While using SDL Gamepad Tool, I noticed the GUID (from tool) is different than what is returned by
Input.get_joy_guid()
:Tool: "Xbox One Wired Controller", 03000000c62400003a54000000000000
Godot: "Xbox One Wired Controller", c6240000000000003a54000000000000
I first noticed this when attempting to use
Input.add_joy_mapping
because it was not working. After replacing the GUID with what Godot returns inInput.get_joy_guid
, it did work, but:Input.add_joy_mapping
seems to ignore the~
for inverting an axis, as in:lefty:a1~
Steps to reproduce (
Input.get_joy_guid
):Input.get_joy_guid(0)
.Steps to reproduce (
Input.add_joy_mapping
):Create A New Mapping
.Copy Mapping String
.lefty:a1
(the value may not bea1
), insert a~
just aftera1
so that it looks like:lefty:a1~
.~
present.~
as well.Minimal reproduction project:
JoyGUIDAndMappingIssue.zip
The text was updated successfully, but these errors were encountered: