Ozkan Sezer
663a27c57c
add a minimal config and makefile to test watcom/os2 builds.
2018-10-14 23:56:56 +03:00
Ozkan Sezer
6ab66823e3
SDL_thread.h: undefine SDL_CreateThreadWithStackSize before redefining.
2018-10-12 01:03:40 +03:00
Ryan C. Gordon
0ba20a58d2
thread: make SDL_CreateThreadWithStackSize() a public API.
2018-10-11 16:40:01 -04:00
Sam Lantinga
f8a899b9ab
Update documentation to note that this hint works on Android too (thanks Trent!)
2018-10-03 15:48:26 -07:00
Sam Lantinga
44070e739d
commit c6b28f46b8116552ec2b38d1d3c8535df28ba7a1
...
Author: Anthony Pesch <inolen@gmail.com>
Date: Fri May 4 20:21:21 2018 -0400
Added SDL_AUDIO_ALLOW_SAMPLES_CHANGE flag enabling users of SDL_OpenAudioDevice to get
the sample size of the actual hardware buffer vs having a stream created to handle the
delta
2018-10-01 09:47:10 -07:00
Ethan Lee
258371154f
Fix Linux haptic scaling, add 2.1 FIXME
2018-05-04 21:58:39 -04:00
Ozkan Sezer
e2590c813a
configury, cmake: add check for endpointvolume.h :
...
add HAVE_ENDPOINTVOLUME_H, HAVE_MMDEVICEAPI_H and HAVE_AUDIOCLIENT_H
in SDL_config.h.in, SDL_config.h.cmake, SDL_config_windows.h, and in
SDL_config_winrt.h.
2018-09-28 13:41:04 +03:00
Sam Lantinga
f1173c73cb
Fixed bug 4277 - warnings patch
...
Sylvain
Patch a few warnings when using:
-Wmissing-prototypes -Wdocumentation -Wdocumentation-unknown-command
They are automatically enabled with -Wall
2018-09-27 14:56:29 -07:00
Sam Lantinga
8f20146d89
Updated version to 2.0.9
2018-09-26 10:08:14 -07:00
Sam Lantinga
2a05f4681b
Fixed bug 4264 - SDL_CreateTextureFromSurface generates error message but returns ok
...
Anthony @ POW Games
SDL_CreateTextureFromSurface makes an internal call to SDL_GetColorKey which can return an error and spams the error log with "Surface doesn't have a colorkey" even though the original function didn't return an error.
2018-09-24 16:41:55 -07:00
Sam Lantinga
75f396a107
Added hints SDL_HINT_MOUSE_DOUBLE_CLICK_TIME and SDL_HINT_MOUSE_DOUBLE_CLICK_RADIUS to allow tuning double-click sensitivity.
...
Also increased the default double-click radius to 32 pixels to be more forgiving for touch interfaces
2018-09-14 19:26:26 -07:00
Ozkan Sezer
3918965ae9
SDL_sensor.h, SDL_video.h: remove comma at end of enumerator lists.
...
Avoids gcc -pedantic warnings, closes bug #4253 .
2018-09-07 10:47:50 +03:00
Ryan C. Gordon
3ac049e49c
Fixed a comment typo.
2018-09-05 21:24:13 -04:00
Sam Lantinga
f3e84167ad
Don't rumble Bluetooth PS4 controllers by default, as that switches the controller into extended input report mode, which breaks games that use DirectInput.
2018-08-29 20:23:39 -07:00
Jeremy Ong
1bb7162872
vulkan: SDL_Vulkan_GetInstanceExtensions should accept a NULL window.
...
Fixes Bugzilla #4235 .
2018-08-24 09:49:48 -04:00
Sam Lantinga
c6e6ed6258
Added documentation for additional Android sensors
2018-08-23 10:51:54 -07:00
Sam Lantinga
2d69f1cbf5
Added SDL_GetDisplayOrientation() to get the display orientation, and added a new event SDL_DISPLAYEVENT to notify the application when the orientation changes.
...
Documented the values returned by the accelerometer and gyroscope sensors
2018-08-22 21:48:28 -07:00
Sam Lantinga
06479674fc
Doh.. __IPHONEOS__ is defined on tvOS
2018-08-21 20:38:22 -07:00
Sam Lantinga
5a53712fcc
Don't use CoreMotion on tvOS
2018-08-21 20:34:09 -07:00
Sam Lantinga
9505b76b0d
Moved SDL_IsTablet() to a cross-platform API function
2018-08-21 20:03:54 -07:00
Sam Lantinga
a9118643f8
Added the iOS sensor implementation
2018-08-21 17:24:12 -07:00
Sam Lantinga
30f36e443a
Fixed duplicate definition of SDL_JoystickID
2018-08-21 13:44:11 -07:00
Sam Lantinga
47d7fd9663
Added a dummy sensor driver
2018-08-21 13:29:21 -07:00
Sam Lantinga
6a6db94f54
First pass on the new SDL sensor API
2018-08-21 12:11:34 -07:00
Sam Lantinga
ce26218414
Add SDL_IsTablet() to Android and iOS SDL.
2018-08-21 11:23:47 -07:00
Sam Lantinga
78df4310c2
Use a single hint for both Xbox 360 and Xbox One controllers, since they are often the same driver.
2018-08-15 23:35:54 -07:00
Sam Lantinga
1083673899
Re-enabled the HIDAPI joystick driver on Windows and Mac OS X
2018-08-09 22:53:43 -07:00
Sam Lantinga
d2fff7b1d3
SDL: disable HIDAPI in SDL on Windows/Mac.
2018-08-09 16:03:55 -07:00
Sam Lantinga
a7f26f9e6c
Added HIDAPI joystick drivers for more consistent support for Xbox, PS4 and Nintendo Switch Pro controller support across platforms.
...
Added SDL_GameControllerRumble() and SDL_JoystickRumble() for simple force feedback outside of the SDL haptics API
2018-08-09 16:00:17 -07:00
Ethan Lee
8c5c6c609f
SDL_exp
2018-08-04 11:52:46 -04:00
Sam Lantinga
b5aa40ef52
Allow trapping the back button so right mouse click can work on some Android systems (thanks Rachel!)
...
Also, added a function SDL_AndroidBackButton() so applications can respond to the back button directly
2018-07-12 13:28:13 -07:00
Sam Lantinga
1b23f13ffe
Added support for external mouse in Samsung DeX mode
...
relative mode doesn't work, but absolute coordinates are functional
2018-06-18 13:14:02 -07:00
Sam Lantinga
af2e341ea6
Added SDL_IsChromebook() to determine if we're running on a Chromebook.
2018-06-05 12:46:13 -07:00
Ryan C. Gordon
ab389226cd
audio: Added ARM NEON versions of audio converters.
...
These are _much_ faster than the scalar equivalents on the Raspberry Pi that
I tested on. Often 3x to 4x as fast!
2018-05-16 02:03:06 -04:00
Ryan C. Gordon
cc16ae0ff1
cpuinfo: Added SDL_HasAVX512F().
...
This checks for the "foundation" AVX-512 instructions (that all AVX-512
compatible CPUs support).
2018-05-21 11:35:42 -04:00
Ryan C. Gordon
1cb8828dd4
cpuinfo: Added some internal SIMD-aligned allocation functions.
...
Fixes Bugzilla #4150 (sort of).
2018-05-21 11:34:57 -04:00
Ozkan Sezer
72bf097561
SDL_stdinc.h: move the alloca() includes before begin_code.h
2018-05-10 08:28:00 +03:00
Sam Lantinga
2d11869712
Fixed bug 4159 - Windows headers are included after packing alignment change
...
lectem
The SDL_syswm.h header includes the windows.h header after including begin_code.h which changes the structure packing alignment.
It seems this is not safe as suggested by the following warning :
warning C4121: 'JOBOBJECT_IO_RATE_CONTROL_INFORMATION_NATIVE_V2': alignment of a member was sensitive to packing
2018-05-07 19:26:02 -07:00
Sam Lantinga
d1956793bb
Added SDL_THREAD_PRIORITY_TIME_CRITICAL
2018-04-23 22:07:56 -07:00
Sam Lantinga
f25a7fa870
Added SDL_LinuxSetThreadPriority() to directly set the priority of a Linux thread (tid)
...
This function tries using RealtimeKit connecting over DBUS as needed.
2018-04-23 19:18:52 -07:00
Sam Lantinga
b997193f84
Fixed bug 4103 - SDL_cpuinfo.h provokes warnings with -Wundef on non-x86 hosts
...
Felix Geyer
Forwarding from https://bugs.debian.org/892087 quoting verbatim:
The SDL2 header SDL_cpuinfo.h generates gcc warnings if the program using
it compiles with the -Wundef warning. (In particular, this means that QEMU
builds using it fail on at least sparc hosts, since QEMU dev builds
use both -Wundef and -Werror.).
/usr/include/SDL2/SDL_cpuinfo.h:63:5: warning: "HAVE_IMMINTRIN_H" is not defined, evaluates to 0 [-Wundef]
#if HAVE_IMMINTRIN_H && !defined(SDL_DISABLE_IMMINTRIN_H)
2018-03-10 21:20:25 -08:00
Sam Lantinga
86de973b6c
Added SDL_GameControllerMappingForDeviceIndex() to get the mapping for a controller before it's opened
2018-03-07 13:30:40 -08:00
Mark Callow
278df7ed20
Support official Vulkan SDK for macOS.
...
This tries to load vulkan.framework or libvulkan.1.dylib before MoltenVK.framework
or libMoltenVK.dylib. In the previous version, layers would not work for applications
run-time loading the default library.
2018-02-25 23:02:09 -08:00
Sam Lantinga
2ebbb5f3c2
Updated documentation with API changes in SDL 2.0.8
2018-02-24 08:18:09 -08:00
Mark Callow
220ef7f3b9
Fix high-dpi support on macOS and simplify it and iOS variant.
...
The detault drawableSize for a CAMetalLayer is its bounds x its scale.
So it is sufficient to set the *layer's* scale to the desired value.
2018-02-21 09:58:21 -08:00
Sam Lantinga
f8023f1dd4
Fixed bug 4085 - X11: Allow configuring _NET_WM_BYPASS_COMPOSITOR through SDL hints
...
Callum McGing
This patch allows the user to disable the behaviour that blocks the compositor through a new hint: SDL_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR. This allows tools or other windowed applications to behave properly under KWin.
2018-02-16 10:23:10 -08:00
sezero
4afad75308
add SDL_log10 and SDL_log10f to include and dynapi
2018-02-08 17:07:47 +03:00
Ethan Lee
ff50cc0958
SDL_log10
2018-01-17 11:53:09 -05:00
Sam Lantinga
5537585efa
Replaced SDL_HINT_APPLE_TV_REMOTE_SWIPES_AS_ARROW_KEYS with SDL_HINT_TV_REMOTE_AS_JOYSTICK which controls whether remotes on iOS and Android are interpreted as joysticks (the default) or as return/escape/arrow keys.
2018-02-06 15:03:38 -08:00
Sam Lantinga
2c08c2b899
Added SDL_IsAndroidTV()
2018-02-06 15:03:35 -08:00