Ozkan Sezer
ee97d4f4c1
add a minimal config and makefile to test watcom/os2 builds.
2018-10-14 23:56:56 +03:00
Ozkan Sezer
0e5a3f6ecf
SDL_thread.h: undefine SDL_CreateThreadWithStackSize before redefining.
2018-10-12 01:03:40 +03:00
Ryan C. Gordon
acb05f50d8
thread: make SDL_CreateThreadWithStackSize() a public API.
2018-10-11 16:40:01 -04:00
Sam Lantinga
b60e5b82fb
Update documentation to note that this hint works on Android too (thanks Trent!)
2018-10-03 15:48:26 -07:00
Sam Lantinga
b251876126
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
0a7faa4ae5
Fix Linux haptic scaling, add 2.1 FIXME
2018-05-04 21:58:39 -04:00
Ozkan Sezer
b11c75e9f4
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
7df0f4fdac
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
bc6c199790
Updated version to 2.0.9
2018-09-26 10:08:14 -07:00
Sam Lantinga
ef34704875
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
6b3e893105
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
afc1738ecb
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
0cf1ae9d0b
Fixed a comment typo.
2018-09-05 21:24:13 -04:00
Sam Lantinga
207428b444
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
a794126d56
vulkan: SDL_Vulkan_GetInstanceExtensions should accept a NULL window.
...
Fixes Bugzilla #4235 .
2018-08-24 09:49:48 -04:00
Sam Lantinga
8adadf8f0e
Added documentation for additional Android sensors
2018-08-23 10:51:54 -07:00
Sam Lantinga
f225af0c1e
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
7f4860e2be
Doh.. __IPHONEOS__ is defined on tvOS
2018-08-21 20:38:22 -07:00
Sam Lantinga
74e99f7416
Don't use CoreMotion on tvOS
2018-08-21 20:34:09 -07:00
Sam Lantinga
6f758ad25f
Moved SDL_IsTablet() to a cross-platform API function
2018-08-21 20:03:54 -07:00
Sam Lantinga
c6647bf9c9
Added the iOS sensor implementation
2018-08-21 17:24:12 -07:00
Sam Lantinga
c5bcefa7e8
Fixed duplicate definition of SDL_JoystickID
2018-08-21 13:44:11 -07:00
Sam Lantinga
3e5dbc694a
Added a dummy sensor driver
2018-08-21 13:29:21 -07:00
Sam Lantinga
7c3040e08a
First pass on the new SDL sensor API
2018-08-21 12:11:34 -07:00
Sam Lantinga
109544ca04
Add SDL_IsTablet() to Android and iOS SDL.
2018-08-21 11:23:47 -07:00
Sam Lantinga
7d3a7ef827
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
5930b50855
Re-enabled the HIDAPI joystick driver on Windows and Mac OS X
2018-08-09 22:53:43 -07:00
Sam Lantinga
b37518b3d8
SDL: disable HIDAPI in SDL on Windows/Mac.
2018-08-09 16:03:55 -07:00
Sam Lantinga
d2042e1ed4
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
b4fe7412f9
SDL_exp
2018-08-04 11:52:46 -04:00
Sam Lantinga
ff8c9538bc
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
a515853569
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
113801b790
Added SDL_IsChromebook() to determine if we're running on a Chromebook.
2018-06-05 12:46:13 -07:00
Ryan C. Gordon
b7e88aaae0
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
4df859c586
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
8543ad7df1
cpuinfo: Added some internal SIMD-aligned allocation functions.
...
Fixes Bugzilla #4150 (sort of).
2018-05-21 11:34:57 -04:00
Ozkan Sezer
c11ae93aed
SDL_stdinc.h: move the alloca() includes before begin_code.h
2018-05-10 08:28:00 +03:00
Sam Lantinga
c04dca0dad
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
f521b22eb5
Added SDL_THREAD_PRIORITY_TIME_CRITICAL
2018-04-23 22:07:56 -07:00
Sam Lantinga
432312561f
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
6d39e67bad
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
a8ac588549
Added SDL_GameControllerMappingForDeviceIndex() to get the mapping for a controller before it's opened
2018-03-07 13:30:40 -08:00
Mark Callow
be6ca785e3
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
5adc1b7d3e
Updated documentation with API changes in SDL 2.0.8
2018-02-24 08:18:09 -08:00
Mark Callow
69958441be
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
8ddebfa06e
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
4c2a444e3a
add SDL_log10 and SDL_log10f to include and dynapi
2018-02-08 17:07:47 +03:00
Ethan Lee
11c348b4d7
SDL_log10
2018-01-17 11:53:09 -05:00
Sam Lantinga
f59b9c8b13
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
6ed184ec69
Added SDL_IsAndroidTV()
2018-02-06 15:03:35 -08:00