mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-17 14:11:33 +00:00
Rebuild SDL2 for macOS
changeset: 13787:a564e72e3b2d
This commit is contained in:
+3
-3
@@ -3,7 +3,7 @@
|
|||||||
<plist version="1.0">
|
<plist version="1.0">
|
||||||
<dict>
|
<dict>
|
||||||
<key>BuildMachineOSBuild</key>
|
<key>BuildMachineOSBuild</key>
|
||||||
<string>18G87</string>
|
<string>19E287</string>
|
||||||
<key>CFBundleDevelopmentRegion</key>
|
<key>CFBundleDevelopmentRegion</key>
|
||||||
<string>English</string>
|
<string>English</string>
|
||||||
<key>CFBundleExecutable</key>
|
<key>CFBundleExecutable</key>
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
<key>DTCompiler</key>
|
<key>DTCompiler</key>
|
||||||
<string>com.apple.compilers.llvm.clang.1_0</string>
|
<string>com.apple.compilers.llvm.clang.1_0</string>
|
||||||
<key>DTPlatformBuild</key>
|
<key>DTPlatformBuild</key>
|
||||||
<string>11C504</string>
|
<string>11C505</string>
|
||||||
<key>DTPlatformVersion</key>
|
<key>DTPlatformVersion</key>
|
||||||
<string>GM</string>
|
<string>GM</string>
|
||||||
<key>DTSDKBuild</key>
|
<key>DTSDKBuild</key>
|
||||||
@@ -37,7 +37,7 @@
|
|||||||
<key>DTXcode</key>
|
<key>DTXcode</key>
|
||||||
<string>1130</string>
|
<string>1130</string>
|
||||||
<key>DTXcodeBuild</key>
|
<key>DTXcodeBuild</key>
|
||||||
<string>11C504</string>
|
<string>11C505</string>
|
||||||
<key>LSMinimumSystemVersion</key>
|
<key>LSMinimumSystemVersion</key>
|
||||||
<string>10.6</string>
|
<string>10.6</string>
|
||||||
</dict>
|
</dict>
|
||||||
|
|||||||
+14
-3
@@ -10,7 +10,7 @@
|
|||||||
</data>
|
</data>
|
||||||
<key>Resources/Info.plist</key>
|
<key>Resources/Info.plist</key>
|
||||||
<data>
|
<data>
|
||||||
eqy0vvISpY1m2UE2zzwN5nsOg00=
|
xIjchI5RXIIqR9iBwzwdhWVeJmQ=
|
||||||
</data>
|
</data>
|
||||||
<key>Resources/LICENSE-bsd.txt</key>
|
<key>Resources/LICENSE-bsd.txt</key>
|
||||||
<data>
|
<data>
|
||||||
@@ -31,6 +31,17 @@
|
|||||||
</dict>
|
</dict>
|
||||||
<key>files2</key>
|
<key>files2</key>
|
||||||
<dict>
|
<dict>
|
||||||
|
<key>Headers/hidapi.h</key>
|
||||||
|
<dict>
|
||||||
|
<key>hash</key>
|
||||||
|
<data>
|
||||||
|
k64XAQ+3r97nmyIHwE8OT8womds=
|
||||||
|
</data>
|
||||||
|
<key>hash2</key>
|
||||||
|
<data>
|
||||||
|
lVEZqQL+xakdQRDnxHo2VwkisMieptRP2Im3DPsMMAs=
|
||||||
|
</data>
|
||||||
|
</dict>
|
||||||
<key>Resources/AUTHORS.txt</key>
|
<key>Resources/AUTHORS.txt</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>hash</key>
|
<key>hash</key>
|
||||||
@@ -46,11 +57,11 @@
|
|||||||
<dict>
|
<dict>
|
||||||
<key>hash</key>
|
<key>hash</key>
|
||||||
<data>
|
<data>
|
||||||
eqy0vvISpY1m2UE2zzwN5nsOg00=
|
xIjchI5RXIIqR9iBwzwdhWVeJmQ=
|
||||||
</data>
|
</data>
|
||||||
<key>hash2</key>
|
<key>hash2</key>
|
||||||
<data>
|
<data>
|
||||||
URtZhZZMVQ0W8AnIoo1VF2mkN9aBvt5La1el7xY0mGU=
|
8Rqw3j5YT+AoPOKV4JE3RuVPPDb4jHtT4tpmG0phLYc=
|
||||||
</data>
|
</data>
|
||||||
</dict>
|
</dict>
|
||||||
<key>Resources/LICENSE-bsd.txt</key>
|
<key>Resources/LICENSE-bsd.txt</key>
|
||||||
|
|||||||
BIN
Binary file not shown.
@@ -139,8 +139,9 @@
|
|||||||
#define SDL_AUDIO_DRIVER_DUMMY 1
|
#define SDL_AUDIO_DRIVER_DUMMY 1
|
||||||
|
|
||||||
/* Enable various input drivers */
|
/* Enable various input drivers */
|
||||||
|
#define SDL_JOYSTICK_HIDAPI 1
|
||||||
#define SDL_JOYSTICK_IOKIT 1
|
#define SDL_JOYSTICK_IOKIT 1
|
||||||
#define SDL_JOYSTICK_HIDAPI 1
|
#define SDL_JOYSTICK_VIRTUAL 1
|
||||||
#define SDL_HAPTIC_IOKIT 1
|
#define SDL_HAPTIC_IOKIT 1
|
||||||
|
|
||||||
/* Enable the dummy sensor driver */
|
/* Enable the dummy sensor driver */
|
||||||
|
|||||||
@@ -37,9 +37,45 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Public functions */
|
/* Public functions */
|
||||||
/* SDL_SetError() unconditionally returns -1. */
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief Set the error message for the current thread
|
||||||
|
*
|
||||||
|
* \return -1, there is no error handling for this function
|
||||||
|
*/
|
||||||
extern DECLSPEC int SDLCALL SDL_SetError(SDL_PRINTF_FORMAT_STRING const char *fmt, ...) SDL_PRINTF_VARARG_FUNC(1);
|
extern DECLSPEC int SDLCALL SDL_SetError(SDL_PRINTF_FORMAT_STRING const char *fmt, ...) SDL_PRINTF_VARARG_FUNC(1);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief Get the last error message that was set
|
||||||
|
*
|
||||||
|
* SDL API functions may set error messages and then succeed, so you should
|
||||||
|
* only use the error value if a function fails.
|
||||||
|
*
|
||||||
|
* This returns a pointer to a static buffer for convenience and should not
|
||||||
|
* be called by multiple threads simultaneously.
|
||||||
|
*
|
||||||
|
* \return a pointer to the last error message that was set
|
||||||
|
*/
|
||||||
extern DECLSPEC const char *SDLCALL SDL_GetError(void);
|
extern DECLSPEC const char *SDLCALL SDL_GetError(void);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief Get the last error message that was set for the current thread
|
||||||
|
*
|
||||||
|
* SDL API functions may set error messages and then succeed, so you should
|
||||||
|
* only use the error value if a function fails.
|
||||||
|
*
|
||||||
|
* \param errstr A buffer to fill with the last error message that was set
|
||||||
|
* for the current thread
|
||||||
|
* \param maxlen The size of the buffer pointed to by the errstr parameter
|
||||||
|
*
|
||||||
|
* \return errstr
|
||||||
|
*/
|
||||||
|
extern DECLSPEC char * SDLCALL SDL_GetErrorMsg(char *errstr, int maxlen);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief Clear the error message for the current thread
|
||||||
|
*/
|
||||||
extern DECLSPEC void SDLCALL SDL_ClearError(void);
|
extern DECLSPEC void SDLCALL SDL_ClearError(void);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -64,7 +64,8 @@ typedef enum
|
|||||||
SDL_CONTROLLER_TYPE_XBOXONE,
|
SDL_CONTROLLER_TYPE_XBOXONE,
|
||||||
SDL_CONTROLLER_TYPE_PS3,
|
SDL_CONTROLLER_TYPE_PS3,
|
||||||
SDL_CONTROLLER_TYPE_PS4,
|
SDL_CONTROLLER_TYPE_PS4,
|
||||||
SDL_CONTROLLER_TYPE_NINTENDO_SWITCH_PRO
|
SDL_CONTROLLER_TYPE_NINTENDO_SWITCH_PRO,
|
||||||
|
SDL_CONTROLLER_TYPE_VIRTUAL
|
||||||
} SDL_GameControllerType;
|
} SDL_GameControllerType;
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
|
|||||||
@@ -336,6 +336,23 @@ typedef struct _SDL_Haptic SDL_Haptic;
|
|||||||
*/
|
*/
|
||||||
#define SDL_HAPTIC_SPHERICAL 2
|
#define SDL_HAPTIC_SPHERICAL 2
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief Uses first axis only.
|
||||||
|
* For some device with only one axis (steering wheel,...),
|
||||||
|
* SDL_HAPTIC_CARTESIAN does not work. SDL_HAPTIC_FIRST_AXIS can be used in
|
||||||
|
* this case.
|
||||||
|
* Using SDL_HAPTIC_FIRST_AXIS is equivalent to :
|
||||||
|
* \code
|
||||||
|
* SDL_HapticDirection direction;
|
||||||
|
* direction.type = SDL_HAPTIC_CARTESIAN;
|
||||||
|
* direction.dir[0] = 1;
|
||||||
|
* direction.dir[1] = 0;
|
||||||
|
* direction.dir[2] = 0;
|
||||||
|
* \endcode
|
||||||
|
* \sa SDL_HapticDirection
|
||||||
|
*/
|
||||||
|
#define SDL_HAPTIC_FIRST_AXIS 3
|
||||||
|
|
||||||
/* @} *//* Direction encodings */
|
/* @} *//* Direction encodings */
|
||||||
|
|
||||||
/* @} *//* Haptic features */
|
/* @} *//* Haptic features */
|
||||||
@@ -444,6 +461,7 @@ typedef struct _SDL_Haptic SDL_Haptic;
|
|||||||
* \sa SDL_HAPTIC_POLAR
|
* \sa SDL_HAPTIC_POLAR
|
||||||
* \sa SDL_HAPTIC_CARTESIAN
|
* \sa SDL_HAPTIC_CARTESIAN
|
||||||
* \sa SDL_HAPTIC_SPHERICAL
|
* \sa SDL_HAPTIC_SPHERICAL
|
||||||
|
* \sa SDL_HAPTIC_FIRST_AXIS
|
||||||
* \sa SDL_HapticEffect
|
* \sa SDL_HapticEffect
|
||||||
* \sa SDL_HapticNumAxes
|
* \sa SDL_HapticNumAxes
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -314,6 +314,17 @@ extern "C" {
|
|||||||
*/
|
*/
|
||||||
#define SDL_HINT_MOUSE_RELATIVE_SPEED_SCALE "SDL_MOUSE_RELATIVE_SPEED_SCALE"
|
#define SDL_HINT_MOUSE_RELATIVE_SPEED_SCALE "SDL_MOUSE_RELATIVE_SPEED_SCALE"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief A variable controlling whether relative mouse motion is affected by renderer scaling
|
||||||
|
*
|
||||||
|
* This variable can be set to the following values:
|
||||||
|
* "0" - Relative motion is unaffected by DPI or renderer's logical size
|
||||||
|
* "1" - Relative motion is scaled according to DPI scaling and logical size
|
||||||
|
*
|
||||||
|
* By default relative mouse deltas are affected by DPI and renderer scaling
|
||||||
|
*/
|
||||||
|
#define SDL_HINT_MOUSE_RELATIVE_SCALING "SDL_MOUSE_RELATIVE_SCALING"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief A variable controlling whether relative mouse mode is implemented using mouse warping
|
* \brief A variable controlling whether relative mouse mode is implemented using mouse warping
|
||||||
*
|
*
|
||||||
@@ -634,10 +645,23 @@ extern "C" {
|
|||||||
* "0" - HIDAPI driver is not used
|
* "0" - HIDAPI driver is not used
|
||||||
* "1" - HIDAPI driver is used
|
* "1" - HIDAPI driver is used
|
||||||
*
|
*
|
||||||
* The default is the value of SDL_HINT_JOYSTICK_HIDAPI
|
* The default is "0" on Windows, otherwise the value of SDL_HINT_JOYSTICK_HIDAPI
|
||||||
*/
|
*/
|
||||||
#define SDL_HINT_JOYSTICK_HIDAPI_XBOX "SDL_JOYSTICK_HIDAPI_XBOX"
|
#define SDL_HINT_JOYSTICK_HIDAPI_XBOX "SDL_JOYSTICK_HIDAPI_XBOX"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief A variable controlling whether the HIDAPI driver for XBox controllers on Windows should pull correlated
|
||||||
|
* data from XInput.
|
||||||
|
*
|
||||||
|
* This variable can be set to the following values:
|
||||||
|
* "0" - HIDAPI Xbox driver will only use HIDAPI data
|
||||||
|
* "1" - HIDAPI Xbox driver will also pull data from XInput, providing better trigger axes, guide button
|
||||||
|
* presses, and rumble support
|
||||||
|
*
|
||||||
|
* The default is "1". This hint applies to any joysticks opened after setting the hint.
|
||||||
|
*/
|
||||||
|
#define SDL_HINT_JOYSTICK_HIDAPI_CORRELATE_XINPUT "SDL_JOYSTICK_HIDAPI_CORRELATE_XINPUT"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief A variable controlling whether the HIDAPI driver for Nintendo GameCube controllers should be used.
|
* \brief A variable controlling whether the HIDAPI driver for Nintendo GameCube controllers should be used.
|
||||||
*
|
*
|
||||||
@@ -660,6 +684,15 @@ extern "C" {
|
|||||||
*/
|
*/
|
||||||
#define SDL_HINT_ENABLE_STEAM_CONTROLLERS "SDL_ENABLE_STEAM_CONTROLLERS"
|
#define SDL_HINT_ENABLE_STEAM_CONTROLLERS "SDL_ENABLE_STEAM_CONTROLLERS"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief A variable controlling whether the RAWINPUT joystick drivers should be used for better handling XInput-capable devices.
|
||||||
|
*
|
||||||
|
* This variable can be set to the following values:
|
||||||
|
* "0" - RAWINPUT drivers are not used
|
||||||
|
* "1" - RAWINPUT drivers are used (the default)
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
#define SDL_HINT_JOYSTICK_RAWINPUT "SDL_JOYSTICK_RAWINPUT"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief If set to "0" then never set the top most bit on a SDL Window, even if the video mode expects it.
|
* \brief If set to "0" then never set the top most bit on a SDL Window, even if the video mode expects it.
|
||||||
@@ -997,7 +1030,8 @@ extern "C" {
|
|||||||
/**
|
/**
|
||||||
* \brief Tell SDL not to catch the SIGINT or SIGTERM signals.
|
* \brief Tell SDL not to catch the SIGINT or SIGTERM signals.
|
||||||
*
|
*
|
||||||
* This hint only applies to Unix-like platforms.
|
* This hint only applies to Unix-like platforms, and should set before
|
||||||
|
* any calls to SDL_Init()
|
||||||
*
|
*
|
||||||
* The variable can be set to the following values:
|
* The variable can be set to the following values:
|
||||||
* "0" - SDL will install a SIGINT and SIGTERM handler, and when it
|
* "0" - SDL will install a SIGINT and SIGTERM handler, and when it
|
||||||
|
|||||||
@@ -105,6 +105,7 @@ typedef enum
|
|||||||
SDL_JOYSTICK_POWER_MAX
|
SDL_JOYSTICK_POWER_MAX
|
||||||
} SDL_JoystickPowerLevel;
|
} SDL_JoystickPowerLevel;
|
||||||
|
|
||||||
|
|
||||||
/* Function prototypes */
|
/* Function prototypes */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -199,6 +200,40 @@ extern DECLSPEC SDL_Joystick *SDLCALL SDL_JoystickFromInstanceID(SDL_JoystickID
|
|||||||
*/
|
*/
|
||||||
extern DECLSPEC SDL_Joystick *SDLCALL SDL_JoystickFromPlayerIndex(int player_index);
|
extern DECLSPEC SDL_Joystick *SDLCALL SDL_JoystickFromPlayerIndex(int player_index);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Attaches a new virtual joystick.
|
||||||
|
* Returns the joystick's device index, or -1 if an error occurred.
|
||||||
|
*/
|
||||||
|
extern DECLSPEC int SDLCALL SDL_JoystickAttachVirtual(SDL_JoystickType type,
|
||||||
|
int naxes,
|
||||||
|
int nbuttons,
|
||||||
|
int nhats);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Detaches a virtual joystick
|
||||||
|
* Returns 0 on success, or -1 if an error occurred.
|
||||||
|
*/
|
||||||
|
extern DECLSPEC int SDLCALL SDL_JoystickDetachVirtual(int device_index);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Indicates whether or not a virtual-joystick is at a given device index.
|
||||||
|
*/
|
||||||
|
extern DECLSPEC SDL_bool SDLCALL SDL_JoystickIsVirtual(int device_index);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set values on an opened, virtual-joystick's controls.
|
||||||
|
* Please note that values set here will not be applied until the next
|
||||||
|
* call to SDL_JoystickUpdate, which can either be called directly,
|
||||||
|
* or can be called indirectly through various other SDL APIS,
|
||||||
|
* including, but not limited to the following: SDL_PollEvent,
|
||||||
|
* SDL_PumpEvents, SDL_WaitEventTimeout, SDL_WaitEvent.
|
||||||
|
*
|
||||||
|
* Returns 0 on success, -1 on error.
|
||||||
|
*/
|
||||||
|
extern DECLSPEC int SDLCALL SDL_JoystickSetVirtualAxis(SDL_Joystick * joystick, int axis, Sint16 value);
|
||||||
|
extern DECLSPEC int SDLCALL SDL_JoystickSetVirtualButton(SDL_Joystick * joystick, int button, Uint8 value);
|
||||||
|
extern DECLSPEC int SDLCALL SDL_JoystickSetVirtualHat(SDL_Joystick * joystick, int hat, Uint8 value);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the name for this currently opened joystick.
|
* Return the name for this currently opened joystick.
|
||||||
* If no name can be found, this function returns NULL.
|
* If no name can be found, this function returns NULL.
|
||||||
|
|||||||
@@ -55,18 +55,13 @@ typedef void *SDL_MetalView;
|
|||||||
* On macOS, this does *not* associate a MTLDevice with the CAMetalLayer on its
|
* On macOS, this does *not* associate a MTLDevice with the CAMetalLayer on its
|
||||||
* own. It is up to user code to do that.
|
* own. It is up to user code to do that.
|
||||||
*
|
*
|
||||||
* The returned handle can be casted directly to a NSView or UIView, and the
|
* The returned handle can be casted directly to a NSView or UIView.
|
||||||
* CAMetalLayer can be accessed from the view's 'layer' property.
|
* To access the backing CAMetalLayer, call SDL_Metal_GetLayer().
|
||||||
*
|
*
|
||||||
* \code
|
* \note \a window must be created with the SDL_WINDOW_METAL flag.
|
||||||
* SDL_MetalView metalview = SDL_Metal_CreateView(window);
|
|
||||||
* UIView *uiview = (__bridge UIView *)metalview;
|
|
||||||
* CAMetalLayer *metallayer = (CAMetalLayer *)uiview.layer;
|
|
||||||
* // [...]
|
|
||||||
* SDL_Metal_DestroyView(metalview);
|
|
||||||
* \endcode
|
|
||||||
*
|
*
|
||||||
* \sa SDL_Metal_DestroyView
|
* \sa SDL_Metal_DestroyView
|
||||||
|
* \sa SDL_Metal_GetLayer
|
||||||
*/
|
*/
|
||||||
extern DECLSPEC SDL_MetalView SDLCALL SDL_Metal_CreateView(SDL_Window * window);
|
extern DECLSPEC SDL_MetalView SDLCALL SDL_Metal_CreateView(SDL_Window * window);
|
||||||
|
|
||||||
@@ -80,6 +75,37 @@ extern DECLSPEC SDL_MetalView SDLCALL SDL_Metal_CreateView(SDL_Window * window);
|
|||||||
*/
|
*/
|
||||||
extern DECLSPEC void SDLCALL SDL_Metal_DestroyView(SDL_MetalView view);
|
extern DECLSPEC void SDLCALL SDL_Metal_DestroyView(SDL_MetalView view);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief Get a pointer to the backing CAMetalLayer for the given view.
|
||||||
|
*
|
||||||
|
* \sa SDL_MetalCreateView
|
||||||
|
*/
|
||||||
|
extern DECLSPEC void *SDLCALL SDL_Metal_GetLayer(SDL_MetalView view);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief Get the size of a window's underlying drawable in pixels (for use
|
||||||
|
* with setting viewport, scissor & etc).
|
||||||
|
*
|
||||||
|
* \param window SDL_Window from which the drawable size should be queried
|
||||||
|
* \param w Pointer to variable for storing the width in pixels,
|
||||||
|
* may be NULL
|
||||||
|
* \param h Pointer to variable for storing the height in pixels,
|
||||||
|
* may be NULL
|
||||||
|
*
|
||||||
|
* This may differ from SDL_GetWindowSize() if we're rendering to a high-DPI
|
||||||
|
* drawable, i.e. the window was created with SDL_WINDOW_ALLOW_HIGHDPI on a
|
||||||
|
* platform with high-DPI support (Apple calls this "Retina"), and not disabled
|
||||||
|
* by the \c SDL_HINT_VIDEO_HIGHDPI_DISABLED hint.
|
||||||
|
*
|
||||||
|
* \note On macOS high-DPI support must be enabled for an application by
|
||||||
|
* setting NSHighResolutionCapable to true in its Info.plist.
|
||||||
|
*
|
||||||
|
* \sa SDL_GetWindowSize()
|
||||||
|
* \sa SDL_CreateWindow()
|
||||||
|
*/
|
||||||
|
extern DECLSPEC void SDLCALL SDL_Metal_GetDrawableSize(SDL_Window* window, int *w,
|
||||||
|
int *h);
|
||||||
|
|
||||||
/* @} *//* Metal support functions */
|
/* @} *//* Metal support functions */
|
||||||
|
|
||||||
/* Ends C function definitions when using C++ */
|
/* Ends C function definitions when using C++ */
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
#define SDL_REVISION "hg-13609:34cc7d3b69d3"
|
#define SDL_REVISION "hg-0:aaaaaaaaaaah"
|
||||||
#define SDL_REVISION_NUMBER 13609
|
#define SDL_REVISION_NUMBER 0
|
||||||
|
|||||||
@@ -121,6 +121,19 @@ typedef enum
|
|||||||
|
|
||||||
/* Function prototypes */
|
/* Function prototypes */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Locking for multi-threaded access to the sensor API
|
||||||
|
*
|
||||||
|
* If you are using the sensor API or handling events from multiple threads
|
||||||
|
* you should use these locking functions to protect access to the sensors.
|
||||||
|
*
|
||||||
|
* In particular, you are guaranteed that the sensor list won't change, so
|
||||||
|
* the API functions that take a sensor index will be valid, and sensor
|
||||||
|
* events will not be delivered.
|
||||||
|
*/
|
||||||
|
extern DECLSPEC void SDLCALL SDL_LockSensors(void);
|
||||||
|
extern DECLSPEC void SDLCALL SDL_UnlockSensors(void);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Count the number of sensors attached to the system right now
|
* \brief Count the number of sensors attached to the system right now
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -529,6 +529,8 @@ extern DECLSPEC double SDLCALL SDL_fabs(double x);
|
|||||||
extern DECLSPEC float SDLCALL SDL_fabsf(float x);
|
extern DECLSPEC float SDLCALL SDL_fabsf(float x);
|
||||||
extern DECLSPEC double SDLCALL SDL_floor(double x);
|
extern DECLSPEC double SDLCALL SDL_floor(double x);
|
||||||
extern DECLSPEC float SDLCALL SDL_floorf(float x);
|
extern DECLSPEC float SDLCALL SDL_floorf(float x);
|
||||||
|
extern DECLSPEC double SDLCALL SDL_trunc(double x);
|
||||||
|
extern DECLSPEC float SDLCALL SDL_truncf(float x);
|
||||||
extern DECLSPEC double SDLCALL SDL_fmod(double x, double y);
|
extern DECLSPEC double SDLCALL SDL_fmod(double x, double y);
|
||||||
extern DECLSPEC float SDLCALL SDL_fmodf(float x, float y);
|
extern DECLSPEC float SDLCALL SDL_fmodf(float x, float y);
|
||||||
extern DECLSPEC double SDLCALL SDL_log(double x);
|
extern DECLSPEC double SDLCALL SDL_log(double x);
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ typedef struct SDL_version
|
|||||||
*/
|
*/
|
||||||
#define SDL_MAJOR_VERSION 2
|
#define SDL_MAJOR_VERSION 2
|
||||||
#define SDL_MINOR_VERSION 0
|
#define SDL_MINOR_VERSION 0
|
||||||
#define SDL_PATCHLEVEL 12
|
#define SDL_PATCHLEVEL 13
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Macro to determine SDL version program was compiled against.
|
* \brief Macro to determine SDL version program was compiled against.
|
||||||
|
|||||||
@@ -118,7 +118,8 @@ typedef enum
|
|||||||
SDL_WINDOW_UTILITY = 0x00020000, /**< window should be treated as a utility window */
|
SDL_WINDOW_UTILITY = 0x00020000, /**< window should be treated as a utility window */
|
||||||
SDL_WINDOW_TOOLTIP = 0x00040000, /**< window should be treated as a tooltip */
|
SDL_WINDOW_TOOLTIP = 0x00040000, /**< window should be treated as a tooltip */
|
||||||
SDL_WINDOW_POPUP_MENU = 0x00080000, /**< window should be treated as a popup menu */
|
SDL_WINDOW_POPUP_MENU = 0x00080000, /**< window should be treated as a popup menu */
|
||||||
SDL_WINDOW_VULKAN = 0x10000000 /**< window usable for Vulkan surface */
|
SDL_WINDOW_VULKAN = 0x10000000, /**< window usable for Vulkan surface */
|
||||||
|
SDL_WINDOW_METAL = 0x20000000 /**< window usable for Metal view */
|
||||||
} SDL_WindowFlags;
|
} SDL_WindowFlags;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -484,7 +485,8 @@ extern DECLSPEC Uint32 SDLCALL SDL_GetWindowPixelFormat(SDL_Window * window);
|
|||||||
* ::SDL_WINDOW_HIDDEN, ::SDL_WINDOW_BORDERLESS,
|
* ::SDL_WINDOW_HIDDEN, ::SDL_WINDOW_BORDERLESS,
|
||||||
* ::SDL_WINDOW_RESIZABLE, ::SDL_WINDOW_MAXIMIZED,
|
* ::SDL_WINDOW_RESIZABLE, ::SDL_WINDOW_MAXIMIZED,
|
||||||
* ::SDL_WINDOW_MINIMIZED, ::SDL_WINDOW_INPUT_GRABBED,
|
* ::SDL_WINDOW_MINIMIZED, ::SDL_WINDOW_INPUT_GRABBED,
|
||||||
* ::SDL_WINDOW_ALLOW_HIGHDPI, ::SDL_WINDOW_VULKAN.
|
* ::SDL_WINDOW_ALLOW_HIGHDPI, ::SDL_WINDOW_VULKAN
|
||||||
|
* ::SDL_WINDOW_METAL.
|
||||||
*
|
*
|
||||||
* \return The created window, or NULL if window creation failed.
|
* \return The created window, or NULL if window creation failed.
|
||||||
*
|
*
|
||||||
@@ -503,6 +505,9 @@ extern DECLSPEC Uint32 SDLCALL SDL_GetWindowPixelFormat(SDL_Window * window);
|
|||||||
* If SDL_WINDOW_VULKAN is specified and there isn't a working Vulkan driver,
|
* If SDL_WINDOW_VULKAN is specified and there isn't a working Vulkan driver,
|
||||||
* SDL_CreateWindow() will fail because SDL_Vulkan_LoadLibrary() will fail.
|
* SDL_CreateWindow() will fail because SDL_Vulkan_LoadLibrary() will fail.
|
||||||
*
|
*
|
||||||
|
* If SDL_WINDOW_METAL is specified on an OS that does not support Metal,
|
||||||
|
* SDL_CreateWindow() will fail.
|
||||||
|
*
|
||||||
* \note On non-Apple devices, SDL requires you to either not link to the
|
* \note On non-Apple devices, SDL requires you to either not link to the
|
||||||
* Vulkan loader or link to a dynamic library version. This limitation
|
* Vulkan loader or link to a dynamic library version. This limitation
|
||||||
* may be removed in a future version of SDL.
|
* may be removed in a future version of SDL.
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<plist version="1.0">
|
<plist version="1.0">
|
||||||
<dict>
|
<dict>
|
||||||
<key>BuildMachineOSBuild</key>
|
<key>BuildMachineOSBuild</key>
|
||||||
<string>18G87</string>
|
<string>19E287</string>
|
||||||
<key>CFBundleDevelopmentRegion</key>
|
<key>CFBundleDevelopmentRegion</key>
|
||||||
<string>English</string>
|
<string>English</string>
|
||||||
<key>CFBundleExecutable</key>
|
<key>CFBundleExecutable</key>
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>FMWK</string>
|
<string>FMWK</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>2.0.12</string>
|
<string>2.0.13</string>
|
||||||
<key>CFBundleSignature</key>
|
<key>CFBundleSignature</key>
|
||||||
<string>SDLX</string>
|
<string>SDLX</string>
|
||||||
<key>CFBundleSupportedPlatforms</key>
|
<key>CFBundleSupportedPlatforms</key>
|
||||||
@@ -27,11 +27,11 @@
|
|||||||
<string>MacOSX</string>
|
<string>MacOSX</string>
|
||||||
</array>
|
</array>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>2.0.12</string>
|
<string>2.0.13</string>
|
||||||
<key>DTCompiler</key>
|
<key>DTCompiler</key>
|
||||||
<string>com.apple.compilers.llvm.clang.1_0</string>
|
<string>com.apple.compilers.llvm.clang.1_0</string>
|
||||||
<key>DTPlatformBuild</key>
|
<key>DTPlatformBuild</key>
|
||||||
<string>11C504</string>
|
<string>11C505</string>
|
||||||
<key>DTPlatformVersion</key>
|
<key>DTPlatformVersion</key>
|
||||||
<string>GM</string>
|
<string>GM</string>
|
||||||
<key>DTSDKBuild</key>
|
<key>DTSDKBuild</key>
|
||||||
@@ -41,7 +41,7 @@
|
|||||||
<key>DTXcode</key>
|
<key>DTXcode</key>
|
||||||
<string>1130</string>
|
<string>1130</string>
|
||||||
<key>DTXcodeBuild</key>
|
<key>DTXcodeBuild</key>
|
||||||
<string>11C504</string>
|
<string>11C505</string>
|
||||||
<key>LSMinimumSystemVersion</key>
|
<key>LSMinimumSystemVersion</key>
|
||||||
<string>10.6</string>
|
<string>10.6</string>
|
||||||
</dict>
|
</dict>
|
||||||
|
|||||||
Binary file not shown.
@@ -6,7 +6,7 @@
|
|||||||
<dict>
|
<dict>
|
||||||
<key>Resources/Info.plist</key>
|
<key>Resources/Info.plist</key>
|
||||||
<data>
|
<data>
|
||||||
sC07CBQyns8khV3Fh/hh4E2hc74=
|
kQWsUbAzKB6cDjSyOGRQOM++OWk=
|
||||||
</data>
|
</data>
|
||||||
<key>Resources/License.txt</key>
|
<key>Resources/License.txt</key>
|
||||||
<data>
|
<data>
|
||||||
@@ -27,10 +27,10 @@
|
|||||||
<dict>
|
<dict>
|
||||||
<key>cdhash</key>
|
<key>cdhash</key>
|
||||||
<data>
|
<data>
|
||||||
CEGTuNjduzlouV6B5JJVr1uRoeM=
|
p2lcvvUyS6Ahs1nLqMaQaVfaN6Y=
|
||||||
</data>
|
</data>
|
||||||
<key>requirement</key>
|
<key>requirement</key>
|
||||||
<string>identifier "org.libsdl.hidapi" and anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */ and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */ and certificate leaf[subject.OU] = EH385AYQ6F</string>
|
<string>cdhash H"51df5d325062884d3b15aea099188c86a0e1e261" or cdhash H"a7695cbef5324ba021b359cba8c6906957da37a6"</string>
|
||||||
</dict>
|
</dict>
|
||||||
<key>Headers/SDL.h</key>
|
<key>Headers/SDL.h</key>
|
||||||
<dict>
|
<dict>
|
||||||
@@ -124,11 +124,11 @@
|
|||||||
<dict>
|
<dict>
|
||||||
<key>hash</key>
|
<key>hash</key>
|
||||||
<data>
|
<data>
|
||||||
eUkWGkQu50iG57VqjB5oIXhaYRk=
|
QtH3ik0NSNRHpmhEF9UXp74BkIE=
|
||||||
</data>
|
</data>
|
||||||
<key>hash2</key>
|
<key>hash2</key>
|
||||||
<data>
|
<data>
|
||||||
hTGa2AD+GTxusg3MsUIzA+xmRIFpgR39xsv51vn/Jl0=
|
ArsQ8ObexbULYFUntU/oRXI56JRbBzO5Ipma8ia5IME=
|
||||||
</data>
|
</data>
|
||||||
</dict>
|
</dict>
|
||||||
<key>Headers/SDL_copying.h</key>
|
<key>Headers/SDL_copying.h</key>
|
||||||
@@ -168,11 +168,11 @@
|
|||||||
<dict>
|
<dict>
|
||||||
<key>hash</key>
|
<key>hash</key>
|
||||||
<data>
|
<data>
|
||||||
MfehpP3RFEj2g4Ya0noqc1o7ANo=
|
pVWfxt+odr3djRqt8D/U421+dQo=
|
||||||
</data>
|
</data>
|
||||||
<key>hash2</key>
|
<key>hash2</key>
|
||||||
<data>
|
<data>
|
||||||
FZWI2OlYvburZIDQeeG29DzMz8n8hzO6bavXGDWoHhk=
|
YKlzVmZ1dgucRXZyWU9kvIjT9QZBohKxz49iLQ/PPQE=
|
||||||
</data>
|
</data>
|
||||||
</dict>
|
</dict>
|
||||||
<key>Headers/SDL_events.h</key>
|
<key>Headers/SDL_events.h</key>
|
||||||
@@ -201,11 +201,11 @@
|
|||||||
<dict>
|
<dict>
|
||||||
<key>hash</key>
|
<key>hash</key>
|
||||||
<data>
|
<data>
|
||||||
NFgER0ImxgFpfHkU677BWPYc1GI=
|
0HJHyRm5mXiBXHHSOwS3ml3dBiw=
|
||||||
</data>
|
</data>
|
||||||
<key>hash2</key>
|
<key>hash2</key>
|
||||||
<data>
|
<data>
|
||||||
uL37yJVC28sdz6PATtGqouLdEcxEJK+cVHlIRBGmwwA=
|
ja5kK2zDvXkL3qllya6MfUZVQFnXs9bedZ6iFU1iXQc=
|
||||||
</data>
|
</data>
|
||||||
</dict>
|
</dict>
|
||||||
<key>Headers/SDL_gesture.h</key>
|
<key>Headers/SDL_gesture.h</key>
|
||||||
@@ -223,33 +223,33 @@
|
|||||||
<dict>
|
<dict>
|
||||||
<key>hash</key>
|
<key>hash</key>
|
||||||
<data>
|
<data>
|
||||||
wk25QquiIctB15MmzqnMjxB/do8=
|
A5VM8GOD6pgO+5umTAfGePUVpKE=
|
||||||
</data>
|
</data>
|
||||||
<key>hash2</key>
|
<key>hash2</key>
|
||||||
<data>
|
<data>
|
||||||
I7Ll6omnZd3Ts2S7kk9GcMTrNm87SSEgWoaYSRt/7pU=
|
GNOzk3bli3Um2gMNnpq6O6rl97hq0dZfj5BIgDSfl9A=
|
||||||
</data>
|
</data>
|
||||||
</dict>
|
</dict>
|
||||||
<key>Headers/SDL_hints.h</key>
|
<key>Headers/SDL_hints.h</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>hash</key>
|
<key>hash</key>
|
||||||
<data>
|
<data>
|
||||||
YZsN5gTIhrJaMZKJcecfJMMmtDA=
|
2fcgomKzlDXR0nG2BTecGYNI2fw=
|
||||||
</data>
|
</data>
|
||||||
<key>hash2</key>
|
<key>hash2</key>
|
||||||
<data>
|
<data>
|
||||||
KIBaC8gbu2WOY1Rzn/x1o+Jpzkjn7smhdgOeihrp6sU=
|
c8vMBfNzwpL6I0l2aghiLSNE3c/ZmOnQCIJCucACo7k=
|
||||||
</data>
|
</data>
|
||||||
</dict>
|
</dict>
|
||||||
<key>Headers/SDL_joystick.h</key>
|
<key>Headers/SDL_joystick.h</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>hash</key>
|
<key>hash</key>
|
||||||
<data>
|
<data>
|
||||||
K9z1CAW/nstv8ExYHSHZVkzB6rA=
|
+ypndKqqtIYkbkypVDCI+M9Ijo0=
|
||||||
</data>
|
</data>
|
||||||
<key>hash2</key>
|
<key>hash2</key>
|
||||||
<data>
|
<data>
|
||||||
Begpgo8SYC3bsrdRQTUPXZys5hlvqFyHVNPcrnD9DAY=
|
foGA4Afxic1PHZfAmJcEZeuXYgDEo0jmSmoLQbNvmDo=
|
||||||
</data>
|
</data>
|
||||||
</dict>
|
</dict>
|
||||||
<key>Headers/SDL_keyboard.h</key>
|
<key>Headers/SDL_keyboard.h</key>
|
||||||
@@ -322,11 +322,11 @@
|
|||||||
<dict>
|
<dict>
|
||||||
<key>hash</key>
|
<key>hash</key>
|
||||||
<data>
|
<data>
|
||||||
+yP6KnkkIHTzx9DFENBYpSeBGxo=
|
S2Es8N4Cya7az5FTs0mqtd840zA=
|
||||||
</data>
|
</data>
|
||||||
<key>hash2</key>
|
<key>hash2</key>
|
||||||
<data>
|
<data>
|
||||||
cXX+1NaoCsHFAkNJVN9Rv1I0x0OGxoD3lCc/NwVROeA=
|
9AgZbEiRMt0j2ui++nJaH+EXz9UF6LtVeljtZkAvvtY=
|
||||||
</data>
|
</data>
|
||||||
</dict>
|
</dict>
|
||||||
<key>Headers/SDL_mouse.h</key>
|
<key>Headers/SDL_mouse.h</key>
|
||||||
@@ -520,11 +520,11 @@
|
|||||||
<dict>
|
<dict>
|
||||||
<key>hash</key>
|
<key>hash</key>
|
||||||
<data>
|
<data>
|
||||||
1KfSJfNX9fAfNlqo2OLxSfHQaik=
|
ixjPDg2DQUEDn7ID2l4wMHDUvDk=
|
||||||
</data>
|
</data>
|
||||||
<key>hash2</key>
|
<key>hash2</key>
|
||||||
<data>
|
<data>
|
||||||
Ol01NFpqQ+/WDQIfZbVpxwfJcyE/qtzCAcFRXVg63rY=
|
LUUZKxelLmuZXjHwFWFSYH8HA96Px1JVmtuv79n+gYY=
|
||||||
</data>
|
</data>
|
||||||
</dict>
|
</dict>
|
||||||
<key>Headers/SDL_rwops.h</key>
|
<key>Headers/SDL_rwops.h</key>
|
||||||
@@ -553,11 +553,11 @@
|
|||||||
<dict>
|
<dict>
|
||||||
<key>hash</key>
|
<key>hash</key>
|
||||||
<data>
|
<data>
|
||||||
EcpSAJiYDO/cjeNM+RnMZqS0YxA=
|
zpUXcUDXo2KHtsqmAJ/EcqjkrtI=
|
||||||
</data>
|
</data>
|
||||||
<key>hash2</key>
|
<key>hash2</key>
|
||||||
<data>
|
<data>
|
||||||
3AJeHmC8LkxLBbEqDgnH1ZoBbA/CJTYIHue3x3QGH5M=
|
ihuAgJMoPj8J+z59LgqWXlOP/L+/WHkpw0Lwr/0VKT4=
|
||||||
</data>
|
</data>
|
||||||
</dict>
|
</dict>
|
||||||
<key>Headers/SDL_shape.h</key>
|
<key>Headers/SDL_shape.h</key>
|
||||||
@@ -575,11 +575,11 @@
|
|||||||
<dict>
|
<dict>
|
||||||
<key>hash</key>
|
<key>hash</key>
|
||||||
<data>
|
<data>
|
||||||
46ybx+QpfwpESkH8Xav5guh0r4M=
|
smZhl9uPKfaFlYEpDbqiYDUGseY=
|
||||||
</data>
|
</data>
|
||||||
<key>hash2</key>
|
<key>hash2</key>
|
||||||
<data>
|
<data>
|
||||||
TKLKiytwHa5ijCd36Ae7yHX/bbBWqdvrnOhaF9fXa0E=
|
h9ZnfoqEmhF2HFFwjE00RNDngk+Lg0Fth+XPTKM/OdA=
|
||||||
</data>
|
</data>
|
||||||
</dict>
|
</dict>
|
||||||
<key>Headers/SDL_surface.h</key>
|
<key>Headers/SDL_surface.h</key>
|
||||||
@@ -663,22 +663,22 @@
|
|||||||
<dict>
|
<dict>
|
||||||
<key>hash</key>
|
<key>hash</key>
|
||||||
<data>
|
<data>
|
||||||
b6EyC2Ch21VSDMFN7yDMyWWcFlM=
|
ydLaUjwmNbF0S0NRtGXglrG9zX4=
|
||||||
</data>
|
</data>
|
||||||
<key>hash2</key>
|
<key>hash2</key>
|
||||||
<data>
|
<data>
|
||||||
eFEfLZ0ETPSOf07Q8df4EYSnDqnqLlOPpwOerY9THqI=
|
OCqFkdoQNDv9puqvFib4mqoO1VwnzsQzA+5uv9vq8os=
|
||||||
</data>
|
</data>
|
||||||
</dict>
|
</dict>
|
||||||
<key>Headers/SDL_video.h</key>
|
<key>Headers/SDL_video.h</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>hash</key>
|
<key>hash</key>
|
||||||
<data>
|
<data>
|
||||||
GxMAhvV6KHWAeC+Mez8bzUxrj+8=
|
nVLRJIS/TH5qs8ZXy37QrPf0bHk=
|
||||||
</data>
|
</data>
|
||||||
<key>hash2</key>
|
<key>hash2</key>
|
||||||
<data>
|
<data>
|
||||||
CiuTAL3gby9Z42HvOP7StKXDCpbx45n+pfe3zGw3NE0=
|
oR7PhH0ZoBVhpjvjVBxVU2zuyb9UsGg2CnARIJvBHt4=
|
||||||
</data>
|
</data>
|
||||||
</dict>
|
</dict>
|
||||||
<key>Headers/SDL_vulkan.h</key>
|
<key>Headers/SDL_vulkan.h</key>
|
||||||
@@ -718,11 +718,11 @@
|
|||||||
<dict>
|
<dict>
|
||||||
<key>hash</key>
|
<key>hash</key>
|
||||||
<data>
|
<data>
|
||||||
sC07CBQyns8khV3Fh/hh4E2hc74=
|
kQWsUbAzKB6cDjSyOGRQOM++OWk=
|
||||||
</data>
|
</data>
|
||||||
<key>hash2</key>
|
<key>hash2</key>
|
||||||
<data>
|
<data>
|
||||||
hYHPEldddc/Esgtnkp9sv1UExiAdPCcgJLF3QFJI2Ak=
|
z/sm5HUSHetKQYB64C+hQcCeWrT1zzAW5tX83K65RQ0=
|
||||||
</data>
|
</data>
|
||||||
</dict>
|
</dict>
|
||||||
<key>Resources/License.txt</key>
|
<key>Resources/License.txt</key>
|
||||||
|
|||||||
Reference in New Issue
Block a user