forked from libsdl-org/SDL
-
Notifications
You must be signed in to change notification settings - Fork 1
initial playdate support #3
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
Open
ericlewis
wants to merge
2,891
commits into
main
Choose a base branch
from
playdate-support
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ea8ed27 to
ad7a887
Compare
XInputGetCapabilitiesEx (ordinal 108) is available in XInput 1.4 that is shipped with Windows 8 and newer. (cherry picked from commit 08a7ca4)
(cherry picked from commit e6d88b254add377743de7bf33a7a4fec8cec79c3)
(cherry picked from commit 4d5949d)
(cherry picked from commit a8f4f40)
testautomation_platform.c:351:28: error: ‘%s’ directive argument is null [-Werror=format-overflow=]
351 | result = SDL_SetError("%s", testError);
| ^~
/home/slvn/release/Release_SDL/sdl2-compat/test/testautomation_platform.c:364:64: error: ‘%s’ directive argument is null [-Werror=format-overflow=]
364 | "SDL_GetError(): expected message '%s', was message: '%s'",
(cherry picked from commit 56f111d)
Added support for getting the real controller info, as well as the function SDL_GameControllerGetSteamHandle() to get the Steam Input API handle, from the virtual gamepads provided by Steam. Also added an event SDL_CONTROLLERSTEAMHANDLEUPDATED which is triggered when a controller's API handle changes, e.g. the controllers were reassigned slots in the Steam UI. (cherry picked from commit c981a59)
This allows the most information possible for the CRC string, which is used to differentiate controllers with the same VID/PID. Fixes libsdl-org#8724 (cherry picked from commit 1f1ee6f)
…GameControllerParseControllerConfigString() (cherry picked from commit 312f98c)
…(thanks @perepujal!) Fixes libsdl-org#8731 (cherry picked from commit bb0e0ae)
…that's what we started with Fixes libsdl-org#8108 Closes libsdl-org#8115 (cherry picked from commit c3d84c3)
…n iOS Fixes libsdl-org#8716 (cherry picked from commit 0e5ea3c)
The udev container issue is mostly to do with device notifications and netlink. The device classification stuff just pokes file in /sys and /run/udev. Doesn't hurt to try it first for classifying joysticks and then fall to the guess heuristics if it fails.
(cherry picked from commit cae6571)
(cherry picked from commit 4ce935b)
(cherry picked from commit 5df3eac)
When cross-compiling, pkg.m4 will set the PKG_CONFIG variable to a suitable pkg-config executable, which might be a host-architecture-prefixed name like aarch64-linux-gnu-pkg-config. This ensures that we will use a suitable search path that is suitable for the host architecture (the machine we are compiling for) rather than the build architecture (the machine we are compiling on) to find dependency libraries like SDL. When using pkg-config as a substitute for sdl2-config, we will similarly need to use the host-architecture-prefixed pkg-config. Setting the PKG_CONFIG environment variable is also the canonical way to request that a different pkg-config implementation be used, if that becomes necessary for some reason. Co-authored-by: Helmut Grohne <[email protected]> Bug-Debian: https://bugs.debian.org/1059749 Signed-off-by: Simon McVittie <[email protected]>
(cherry picked from commit 78ccadd)
I believe there was a O(n^2) device walking issues on startup - MaybeAddDevice gets called for every device at startup - MaybeAddDevice calls IsJoystick - IsJoystick calls SDL_UDEV_GetProductInfo - SDL_UDEV_GetProductInfo calls udev_enumerate_scan_devices - udev_enumerate_scan_devices walks all the devices Prior to commit 3b1e0e1 this was mostly masked as IsJoystick only called SDL_UDEV_GetProductInfo when a JSIOCGNAME ioctl was successful. This fixes the O(n^2) behaviour by directly getting the device via udev_device_new_from_devnum (based on type, major, and minor number) instead of enumerating everything via udev_enumerate_scan_devices and matching on name.
(cherry picked from commit 2b4c756)
(psp-cmake defines `__PSP__` on the command line, but the compiler itself only defines `__psp__` and some variations. Fixes libsdl-org#9378.
Reference issue: libsdl-org#9392 . (cherry picked from commit 6cf71ca)
(cherry picked from commit e055a9f)
This fixes an macOS bug that is only known to occur in fullscreen windows on the built-in displays of newer MacBooks with camera notches. When the mouse is moved near the top of such a window (within about 44 units) and then moved back down, the cursor rects aren't respected. This can cause the default cursor to be visible when it should not be.
For whatever reason, `ExtractIconEx` returns icons whose sizes are inappropriate for the current DPI, resulting in terribly-blurry window icons at higher DPIs. To solve this, the window icon is now set to the first icon group that is present in the executable. This behaviour should match what Explorer does. By selecting an icon group instead of a specific icon, Windows is free to select the icon within the group that best suits the current DPI.
For compatibilty with TinyCC. Backport of 0675868
This makes it so the build still works when project is referenced by another solution
016c547 to
9407c22
Compare
9407c22 to
76b1e02
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Existing Issue(s)