-
Notifications
You must be signed in to change notification settings - Fork 424
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
Upgrade to SDL3 #6234
Merged
Merged
Upgrade to SDL3 #6234
Changes from all commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
392703f
Convert SDL2 usages to `using static`
Susko3 dc7ce4e
Run SDL `build-scripits/rename_symbols.py`
Susko3 e936173
Switch to ppy.SDL3-CS and update `using`s
Susko3 4172d68
Convert to regular `using` (from `using static`)
Susko3 95c9f57
Update pointer types from IntPtr to specific ones
Susko3 b3706de
Use UTF-8 literals and encoding when passing in strings
Susko3 57112d0
Use function pointers for callback functions
Susko3 efdd370
Update display and window event types
Susko3 c473ac0
Use proper types
Susko3 78ba63d
Update hint names
Susko3 ce55edf
Use `fixed` when passing in arrays
Susko3 6302046
Update to float mouse coordinates in `pollMouse()`
Susko3 66e8ea1
Simple function signature updates
Susko3 0923e41
Remove manual Window raw mouse handling
Susko3 2fb51d0
Migrate SDL_SYSWMEVENT events to SDL_SetWindowsMessageHook()
Susko3 0e78180
Remove borderless fullscreen on non-Windows platforms
Susko3 731a0dc
Simplify `TryGetTouchName()` logic
Susko3 eb734d2
Change `DisplayMode.RefreshRate` to `float`
Susko3 b0830de
Migrate displays + modes fetch to SDL3
Susko3 6f8b5dc
Store display ID instead of index
Susko3 d19fa6e
Get index from SDL_DisplayID
Susko3 47be5b6
Update ensureWindowOnDisplay() logic and add helper to fetch display …
Susko3 095a413
Update `tryFetchDisplayMode()`
Susko3 2e24e8f
Update `getClosestDisplayMode()`
Susko3 e27bfc5
Use friendly helpers for getting strings from events
Susko3 f2c1f28
Update touch event handling to use proper types
Susko3 3a63be8
Update joystick/gamepad event handling to use proper types
Susko3 91e50aa
Use proper enum type in mouse button handling
Susko3 1593e95
Migrate from `SDL_GetWindowWMInfo()` to window properties
Susko3 45473dd
Comment out iOS code without migration path
Susko3 8fc1645
Remove redundant casts and `unsafe` context
Susko3 c731d0c
Update `SDL2ControllerBindings`
Susko3 40c1e41
Set `DllImportResolver` on iOS
Susko3 5ae8946
Fix cursor not warping in fullscreen on Windows
Susko3 171920f
Remove custom DPI awareness code
Susko3 dd51e3c
Use type-friendly properties
Susko3 e9e73cb
Fix joystick axis not working
Susko3 d8e14e6
Don't convert float -> int -> float
Susko3 d16105a
Rename `osu.Framework.Platform.SDL2` to `osu.Framework.Platform.SDL`
Susko3 2ea78bb
Rename classes from `SDL2*` to `SDL3*`
Susko3 79d8e44
Replace `SDL2` with `SDL3` in comments / string literals
Susko3 668fa9c
Remove native logic that supported raw mouse
Susko3 6b3a997
Fix code inspection
Susko3 22af688
Enable NRT in `SDL3Extensions`
Susko3 d5af283
Fix Vulkan+X11 not working
smoogipoo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Never seen this before 🤯