Skip to content

sdl: Update to 3.4.4#119024

Open
NoDwen wants to merge 1 commit intogodotengine:masterfrom
NoDwen:sdl-3.4.4
Open

sdl: Update to 3.4.4#119024
NoDwen wants to merge 1 commit intogodotengine:masterfrom
NoDwen:sdl-3.4.4

Conversation

@NoDwen
Copy link
Copy Markdown

@NoDwen NoDwen commented Apr 28, 2026

Tested with Xbox 360, works on Linux and Wine.

@NoDwen NoDwen requested a review from a team as a code owner April 28, 2026 00:48
Comment on lines +329 to 337
if (controller.vendorName) {
name = controller.vendorName.UTF8String;
} else {
if (controller.vendorName) {
name = controller.vendorName.UTF8String;
if (@available(macOS 10.15, iOS 13.0, tvOS 13.0, *)) {
if (controller.productCategory) {
name = controller.productCategory.UTF8String;
}
}
}
Copy link
Copy Markdown
Member

@Nintorch Nintorch Apr 28, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CC @sorascode
See also libsdl-org/SDL@ef0ae4c and libsdl-org/SDL@fa3467a
Do you think this change will introduce regressions for issues like #98008 and #96756 or any other regressions?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AdriaandeJongh Hello, may I ask if you can test this PR for any regressions for your issue, please?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With this PR on macOS 26.4.1, using:

func _input(event: InputEvent) -> void:
	if event is InputEventJoypadButton:
		var iejb: InputEventJoypadButton = event
		print(Input.get_joy_info(iejb.device))
		print(Input.get_joy_name(iejb.device))

Microsoft Xbox One Wireless Controller:

{ "raw_name": "Controller", "vendor_id": "1118", "product_id": "736" }
Controller

Sony Playstation 4 Wireless Controller:

{ "raw_name": "PS4 Controller", "vendor_id": "1356", "product_id": "1476"}
PS4 Controller

8BitDo Pro Controller:

{ "raw_name": "8BitDo Pro 3", "vendor_id": "1452", "product_id": "4" }
8BitDo Pro 3

So it looks like the Xbox controller returns a generic name with this change and that could be considered a regression. However, with the vendor_id and product_id, is it possible to deduce that this is an Xbox controller anyway?

Copy link
Copy Markdown
Member

@Nintorch Nintorch May 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for testing! I would consider this a regression, I will propose a solution to SDL later when I can!

@Nintorch Nintorch requested a review from a team April 28, 2026 05:56
@Nintorch Nintorch added this to the 4.x milestone Apr 28, 2026
@Nintorch Nintorch self-requested a review April 28, 2026 05:56
I'm not sure about deleting:
0005-fix-libudev-dbus.patch
0008-fix-linux-joycon-serial-num.patch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants