LA
8527ffddb7
同步更新,以及增加asio和独占wasapi的支持
2025-12-28 14:15:09 +08:00
Dan Balasescu
f647eeb225
Merge pull request #6392 from hwsmm/nanosleep
...
Use nanosleep for non-Windows platforms
2025-06-08 19:56:47 +09:00
Salman Alshamrani
6ddd9accee
Fix enum naming warnings
2024-12-04 06:04:03 -05:00
hwsmm
ba6a084890
Partly apply Susko3's suggestion for UnixNativeSleep
2024-10-21 22:07:15 +09:00
hwsmm
437bd0ddb6
Use nint and cleanup detection in UnixNativeSleep
2024-10-21 21:38:43 +09:00
hwsmm
a29d4a1203
Better error handling in UnixNativeSleep
2024-10-18 23:07:45 +09:00
hwsmm
e97e54f80f
Use nanosleep for non-Windows platforms
2024-10-18 22:40:44 +09:00
Dan Balasescu
14ca6826f1
Add SDL2/3 Linux window variants
2024-05-21 18:55:50 +09:00
Dan Balasescu
7ee5f6f4d5
Renamespace classes to SDL3
...
Using `using SDL.SDL3` to fix namespace conflicts.
2024-05-21 16:51:02 +09:00
FreezyLemon
7fe8bcbdaa
Add HostOptions.FriendlyGameName and set as SDL APP_NAME hint
2024-04-23 17:40:45 +02:00
Susko3
79d8e449cf
Replace SDL2 with SDL3 in comments / string literals
2024-04-08 16:01:56 +02:00
Susko3
2ea78bb6f7
Rename classes from SDL2* to SDL3*
2024-04-08 16:01:56 +02:00
Susko3
d16105ab25
Rename osu.Framework.Platform.SDL2 to osu.Framework.Platform.SDL
...
`.SDL3` has a naming conflict with `SDL3` static class
2024-04-08 16:01:56 +02:00
Susko3
78ba63d0a6
Update hint names
2024-04-08 16:01:56 +02:00
Susko3
b3706dea32
Use UTF-8 literals and encoding when passing in strings
2024-04-08 16:01:56 +02:00
Susko3
4172d68644
Convert to regular using (from using static)
2024-04-08 16:01:52 +02:00
Susko3
e936173aa4
Switch to ppy.SDL3-CS and update usings
2024-04-08 15:01:13 +02:00
Susko3
392703fb2e
Convert SDL2 usages to using static
...
This helps with migrating enums, as ClangSharp doesn't put them in the `SDL3` class.
2024-04-07 12:24:58 +02:00
Dan Balasescu
e042cb06a0
Adjust user storage paths for better cross-platform support
2024-02-23 19:49:07 +09:00
Dan Balasescu
d7ff5d6478
Fix Linux/Unix storage paths
...
`MyDocuments` and `Personal` are
[documented](https://learn.microsoft.com/en-us/dotnet/api/system.environment.specialfolder?view=net-7.0#fields )
as referring to the same thing.
There was a bug with previous versions of .NET where `Personal` would
incorrectly refer to `$HOME` on Unix/Linux. Since 2022-10 (so this change
is likely also required for net7.0), this now correctly refers to
`$HOME/Documents`
The runtime change that caused this is https://github.com/dotnet/runtime/pull/76250 .
2023-07-08 03:16:59 +09:00
Dean Herbert
75ed421f60
Automated pass
2023-06-24 00:42:48 +09:00
Dan Balasescu
9f3e546aef
Disable relative-mode mouse by default on Linux
2023-05-08 17:48:28 +09:00
Dean Herbert
5fc59185e6
Fix random null inspection
2023-03-25 22:07:16 +09:00
Dean Herbert
b704c1f8c3
Make SDL2Window abstract and introduce SDL2DesktopWindow class
2023-03-24 18:33:33 +09:00
Salman Ahmed
eb8c0488f3
Simplify and let IOSGameHost inherit from SDL2GameHost
2023-03-22 19:17:29 +03:00
Salman Ahmed
bf15fc448c
Define abstract class for SDL-powered GameHosts
2023-03-22 19:17:29 +03:00
Salman Ahmed
4c4209656f
Rename SDL2DesktopWindow to SDL2Window
2023-03-22 19:17:29 +03:00
Dan Balasescu
695c3b6f73
Rename to graphics surface and invert data path
2022-12-14 18:35:05 +09:00
Salman Ahmed
15c18431f2
Rewrite and rename IGraphicsBackend to work better with multiple backends
2022-10-24 20:58:16 +03:00
Dan Balasescu
ba1385330c
Automated #nullable processing
2022-06-13 21:57:05 +09:00
OctopuSSX
f237131df5
Implement GetImage
2022-02-09 22:30:41 +03:00
OctopuSSX
1d8d25be0c
Return success status instead of throwing NotImplementedException
2022-02-05 17:37:02 +03:00
OctopuSSX
09b4295f79
Implement SetImage
2022-02-05 12:57:46 +03:00
Salman Ahmed
40feeac06b
Remove no longer required SDL2 P/Invokes in Linux clipboard
2022-02-04 21:02:27 +03:00
Dean Herbert
181dbd3794
Fix incorrect access of options
...
Co-authored-by: Susko3 <16479013+Susko3@users.noreply.github.com >
2022-01-06 23:10:42 +09:00
Dean Herbert
cd25bc122e
Move gameName out of HostOptions
2022-01-06 15:25:34 +09:00
Dean Herbert
7ccc172384
Rename HostConfig to HostOptions
...
In line with microsoft naming standards, and also avoid conflict with
the term "Config" which we use in completely different circumstances
around the same code. Would lead to a lot of confusion.
2022-01-05 15:06:29 +09:00
Speykious
d9f3ed7fdb
Remove related obsolete internals
2022-01-03 23:35:13 +01:00
Speykious
489a116289
Deprecate methods in favor of using a HostConfig
2022-01-03 18:02:22 +01:00
Speykious
6129605ef3
Move hint setting to LinuxGameHost
2021-12-31 18:01:58 +01:00
Susko3
a35ec7da8e
Remove TryGetNameFromInputKey() and move overrides to GetReadableKey()
2021-11-06 17:16:42 +01:00
Susko3
cb1454103c
Add TryGetNameFromInputKey as a way to override left-right agnostic modifier keys per platform.
2021-11-03 20:02:22 +01:00
Susko3
b989360811
Restructure SDL2ReadableKeyCombinationProvider so that platform overrides are applied after conversion to SDL_Keycodes
...
This way, all platform overrides will be adjusted for the current keyboard layout.
2021-11-03 19:52:38 +01:00
Susko3
4fa7458ea2
Merge remote-tracking branch 'upstream/master' into SDL2-readable-KeyCombination
2021-10-30 16:00:04 +02:00
ekrctb
dde9eb08ed
Apply "use explict type (built-in types)" inspection fix
2021-10-27 20:51:35 +09:00
Susko3
afe5eecad8
Add ReadableKeyCombinationProvider
...
Accessible trough DI, cached by GameHost.
Adds both a generic one (copied over from KeyCombination.ReadableString)
and platform specific ones for SDL2.
2021-10-23 20:24:16 +02:00
Dean Herbert
cc2467b30c
Change method of resolving user storage path to better handle edge case scenarios
2021-09-06 02:57:23 +09:00
Dean Herbert
6a2250ee58
Enable inspections for unused method parameters
2021-08-06 17:30:32 +09:00
Dean Herbert
887706bf16
Remove useOsuTK argument support
2021-03-11 13:39:00 +09:00
Dean Herbert
c7b2a0dd85
Remove OsuTK implementations we are no longer using
2021-03-09 20:14:19 +09:00