Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.
/ SDL Public archive

SDL 2.0.22 #46

Merged
merged 484 commits into from
Apr 28, 2022
Merged

SDL 2.0.22 #46

merged 484 commits into from
Apr 28, 2022

Conversation

fhvwy
Copy link
Contributor

@fhvwy fhvwy commented Apr 28, 2022

Description

This rebases on SDL 2.0.22.

It has a few overlapping changes but no code conflicts, and another new github CI file is removed.

Tests

Tested on Linux.

Someone testing on macOS is probably a good idea.

jo-valve and others added 30 commits March 9, 2022 14:08
…eless receivers

The name that the Raw Input joystick driver pulls from the HID stack comes
from USB string descriptors contained on the device. For official wireless
receivers, this always contains "Xbox 360 Wireless Receiver for Windows"
which matches the friendly name that WGI provides.

3rd party Xbox 360 wireless receivers may have different strings in their
USB string descriptors (one uses "XBOX 360 For Windows" instead). This
fails to match WGI's name and causes Raw Input and WGI to both report the
same gamepad.

Since wireless Xbox 360 controllers seem to have a consistent VID/PID
regardless of the adapter enumerating them, we can also match on that to
catch these.

The duplicate case reported to me was:
Controller (XBOX 360 For Windows) - 030000005e040000a102000000007200
Xbox 360 Wireless Receiver for Windows - 030000005e0400000000000000007701
…ion (#5398)

* Fixes for IME Composition Truncation + Addition of SDL_ClearComposition, SDL_IsTextInputShown

* Fixed: Documentation and code style issues raised during code review.
Otherwise, this results an assert on big endian machines when attenpting to use SDL_LoadWAV_RW function to load 8-bit WAV files.
SonicMastr and others added 24 commits April 19, 2022 14:17
Add SDL_FRectEqualsEpsilon() for when more control over
equality test is required.
Based on the integer version. These tests mostly check that input
isn't mangled and that invalid input gives the expected negative
result.
The purpose of this is to silence a 'defined but not used'
warning.
Every other backend does this, so this should match, now.
It's possible this was harmless, but we can avoid the system call
and the (likely?) debug message when it fails, though!
…ng apartment threading

This mirrors the same codepath in WIN_CoInitialize() which handles STA and MTA.
… when connected over USB. Possibly related to being completely charged? Either way we already know that it's USB or BT so let's use the driver's knowledge instead.
This reverts commit 8597735.
This reverts commit 0249df9.

Fixes #5572.
Reopens #5390.
@fhvwy fhvwy requested a review from a team April 28, 2022 12:45
@philippemnoel philippemnoel merged commit e8156c6 into main Apr 28, 2022
@philippemnoel philippemnoel deleted the mark/sdl-2.0.22 branch April 28, 2022 19:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet