471 Commits

Author SHA1 Message Date
Dan Balasescu
f6cc050571 Fix Android compile
Co-authored-by: Susko3 <Susko3@protonmail.com>
2025-08-17 17:04:57 +09:00
Dan Balasescu
b65bf4fbb2 Update SDL3-CS 2025-08-17 17:04:56 +09:00
Dean Herbert
a891e0a3e5 Update BASS with more fixes
See https://www.un4seen.com/forum/?topic=20482
2025-08-06 03:05:37 +09:00
Dean Herbert
09d1d7a331 Update BASS libraries
See https://www.un4seen.com/forum/?msg=145285.
2025-07-18 12:56:20 +09:00
Dan Balasescu
1647e90e9e Remove libveldrid-spirv libs from Android package
These are expected to be transitively provided by the
`ppy.Veldrid.SPIRV` nuget package.
2025-07-03 15:16:58 +09:00
Dean Herbert
c576b6a561 Add android and iOS update support 2025-05-06 19:34:17 +09:00
Susko3
95725361f4 Removed workaround code
Fixed by https://github.com/libsdl-org/SDL/issues/9592
2025-02-19 22:30:17 +01:00
Susko3
efc27ac539 Update SDL3-CS to 2025.104.0 2025-01-04 19:21:55 +00:00
Dan Balasescu
eafbed41be Update SDL3 package 2024-11-28 18:06:05 +09:00
Bartłomiej Dach
0d157c908b Update SDL3-CS
Includes upstream fix to https://github.com/ppy/osu/issues/28966
through https://github.com/ppy/SDL3-CS/pull/167
+ https://github.com/ppy/SDL3-CS/pull/170.
2024-10-22 12:49:32 +02:00
hwsmm
a12c8d9c11 Consume new SDL3-CS packages 2024-10-15 23:56:27 +09:00
hwsmm
e45ebc94fb Consume new SDL3-CS packages 2024-09-16 02:15:34 +09:00
hwsmm
3075810de8 Fix Android safe area 2024-08-20 01:26:58 +09:00
Dean Herbert
23a3369d16 Fix android specific issue 2024-08-19 19:47:51 +09:00
Salman Ahmed
59212b5936 Update BASS libraries for Android 2024-08-09 10:49:15 +03:00
Dan Balasescu
2873f7f1d5 Update package 2024-08-07 23:24:11 +09:00
hwsmm
7e8b45cd7a Apply a change for SDL3 bindings update 2024-08-05 22:48:24 +09:00
Dan Balasescu
18434ddc39 Update SDL3 package 2024-07-17 16:48:51 +09:00
Bartłomiej Dach
c85d99b7ca Remove one more HasFlagFast() usage in android project 2024-07-02 08:18:12 +02:00
Dan Balasescu
20a614d737 Upgrade SDL3 package 2024-05-28 20:18:09 +09:00
Susko3
2c7704b902 Bump ppy.SDL3-CS.Android version
This includes SDL3 change: https://github.com/libsdl-org/SDL/pull/9654
2024-05-24 23:10:27 +02:00
Susko3
33a58f5a7b Merge branch 'master' into fix-gamehost-collect-on-android 2024-05-24 23:09:08 +02:00
Dan Balasescu
1b7438fe11 Fix iOS/Android projects, always use SDL3 on them 2024-05-21 19:29:08 +09:00
Susko3
375a879831 Fix Xamarin.Jetbrains.Annotations conflicting with Jetbrains.Annotations
This conflict was most noticeable when using `[NotNull]` in osu!
9c22fa3a9f

This doesn't fix the conflict in o!f.Android, but it does fix it for downstream projects.
If a fix is needed for o!f, PackageReference Aliases can be used.

More info: https://github.com/xamarin/AndroidX/issues/885
2024-05-07 03:51:22 +02:00
Dan Balasescu
d73af6ccc9 Merge pull request #6268 from Susko3/dont-overload-DisplayHandle
Refactor `DisplayHandle` into seperate android and linux properties
2024-05-01 04:50:20 +09:00
Susko3
fac74e00ac Use SDL3 screen saver functions to implement AllowScreenSuspension
This removes the custom Android and iOS implementations, and also adds support for desktop platforms.
2024-04-30 12:35:21 +02:00
Susko3
673fa11f50 Don't store the host in AndroidGameActivity 2024-04-30 11:45:41 +02:00
Susko3
53affedbd7 Don't call GameHost.Collect() twice
We already trim memory on a `SDL_EVENT_LOW_MEMORY`.
2024-04-30 11:44:43 +02:00
Susko3
807ecd63a9 Add SurfaceHandle instead of overloading DisplayHandle
The `DisplayHandle` is very different from the android surface handle.
2024-04-29 23:29:00 +02:00
Bartłomiej Dach
a60499c69d Remove osuTK reference from android project 2024-04-26 14:43:07 +02:00
Bartłomiej Dach
f6b4c3cedf Merge branch 'master' into sdl-cs-android 2024-04-26 10:17:48 +02:00
Bartłomiej Dach
106ea66d88 Remove back button disable hint
Not sure why it's still here, I asked during review and it was supposed
to be removed.
2024-04-26 10:11:51 +02:00
Bartłomiej Dach
dad23c0c65 Do not dispose host on android 2024-04-26 10:11:50 +02:00
hwsmm
b3314484f9 Apply review suggestions and cleanup 2024-04-20 22:57:15 +09:00
Bartłomiej Dach
0a54d0cf5f Consume ppy.SDL3-CS.Android package 2024-04-19 11:43:57 +02:00
hwsmm
11ac744d8a Use (probably) better way to control frame draw in AndroidGameHost 2024-04-16 22:18:41 +09:00
hwsmm
1771df5a69 Add ScreenSuspension and Remove unneeded lines in AndroidGameActivity 2024-04-16 22:18:05 +09:00
hwsmm
fdf34de89f Remove unneeded changes in AndroidGameActivity 2024-04-16 01:17:34 +09:00
hwsmm
095d3c30b5 Merge master and update Android to SDL3 2024-04-15 23:35:45 +09:00
Dan Balasescu
72d810c127 Merge branch 'master' into fix-IsDebugBuild-on-android 2024-03-04 14:29:14 +09:00
Dan Balasescu
e042cb06a0 Adjust user storage paths for better cross-platform support 2024-02-23 19:49:07 +09:00
hwsmm
cce5feeffa Merge master 2024-02-12 23:28:36 +09:00
Susko3
7c15b4aa1f Pass in the window insets 2024-02-05 18:12:14 +01:00
Susko3
116d8994a3 Override OnApplyWindowInsets() instead of hacking around LayoutChange 2024-02-05 18:03:21 +01:00
Susko3
8485ee7b33 Use WindowInsetsCompat to fix deprecation warning 2024-02-05 17:58:25 +01:00
Susko3
857bb38af2 Use window area instead of screen area for safe area computations
This is more correct, as window insets are reported relative to the window/view area.

Uses https://developer.android.com/reference/androidx/window/layout/WindowMetricsCalculator for compat on older platforms.
2024-02-05 17:45:51 +01:00
Dean Herbert
ac6cfa2090 Merge branch 'master' into net8 2024-02-05 21:05:30 +08:00
Susko3
44c291597a Fix simple version checks 2024-02-02 22:59:12 +01:00
Susko3
a4056d22c2 Improve mouse button event handling on older Android versions
Previously, mouse buttons wouldn't work on platforms < API 23 (unverified).
I have not testes the code on older APIs, but the `else` branch works as expected on newer APIs.
2024-02-02 22:54:54 +01:00
Dan Balasescu
2c9e7a6d7c Upgrade to .NET 8 SDK 2024-02-02 16:21:16 +09:00