Detect device form factor (#12584)

This commit is contained in:
Semphriss 2026-06-21 11:33:13 -04:00 committed by GitHub
parent 5317703567
commit d474769878
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 184 additions and 19 deletions

View file

@ -1298,3 +1298,5 @@ _SDL_RequestNotificationPermission
_SDL_ShowNotificationWithProperties
_SDL_ShowNotification
_SDL_RemoveNotification
_SDL_GetDeviceFormFactor
_SDL_GetDeviceFormFactorName

View file

@ -1299,6 +1299,8 @@ SDL3_0.0.0 {
SDL_ShowNotificationWithProperties;
SDL_ShowNotification;
SDL_RemoveNotification;
SDL_GetDeviceFormFactor;
SDL_GetDeviceFormFactorName;
# extra symbols go here (don't modify this line)
local: *;
};

View file

@ -1325,3 +1325,5 @@
#define SDL_ShowNotificationWithProperties SDL_ShowNotificationWithProperties_REAL
#define SDL_ShowNotification SDL_ShowNotification_REAL
#define SDL_RemoveNotification SDL_RemoveNotification_REAL
#define SDL_GetDeviceFormFactor SDL_GetDeviceFormFactor_REAL
#define SDL_GetDeviceFormFactorName SDL_GetDeviceFormFactorName_REAL

View file

@ -1333,3 +1333,5 @@ SDL_DYNAPI_PROC(bool,SDL_RequestNotificationPermission,(void),(),return)
SDL_DYNAPI_PROC(SDL_NotificationID,SDL_ShowNotificationWithProperties,(SDL_PropertiesID a),(a),return)
SDL_DYNAPI_PROC(SDL_NotificationID,SDL_ShowNotification,(const char *a,const char *b,SDL_Surface *c,SDL_NotificationAction *d,int e),(a,b,c,d,e),return)
SDL_DYNAPI_PROC(bool,SDL_RemoveNotification,(SDL_NotificationID a),(a),return)
SDL_DYNAPI_PROC(SDL_FormFactor,SDL_GetDeviceFormFactor,(void),(),return)
SDL_DYNAPI_PROC(const char*,SDL_GetDeviceFormFactorName,(SDL_FormFactor a),(a),return)