Ozkan Sezer
c85ef4d8f9
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
Ozkan Sezer
91ed631b04
configury, cmake: make wasapi option independent of directx.
2018-09-28 11:30:50 +03:00
Sam Lantinga
695a3d1b65
Fixed building with Xcode 10.0
2018-09-28 01:18:54 -07:00
Ozkan Sezer
2ea7eb1b60
hidapi/windows/hid.c: fix misplaced #if 0
...
VendorID && ProductID are only used by the test main(),
otherwise they are unwanted globals.
2018-09-28 11:04:55 +03:00
Sam Lantinga
bbbc993a43
Fixed mingw-w64 build
2018-09-28 01:00:47 -07:00
Sam Lantinga
b77667a892
Fixed mingw-w64 build
2018-09-28 00:40:35 -07:00
Sam Lantinga
5df3c8ad49
Added patch notes for SDL 2.0.9
2018-09-27 23:54:40 -07:00
Sam Lantinga
31dde82573
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
Ozkan Sezer
0bec5913e1
SDL_atomic.c, SDL_spinlock.c: use lock prefix with xchg in Watcom asm.
2018-09-27 11:55:02 +03:00
Ozkan Sezer
cef7f91ad7
SDL_vsnprintf() updates for zero-padding:
...
- remove force-enabling of pad_zeroes for %u for compatibility
(was added in https://hg.libsdl.org/SDL/rev/701f4a25df89 )
- ignore pad_zeroes for %s and %S
- ignore pad_zeroes for %d, %i and %u if a precision is given
2018-09-27 09:37:36 +03:00
Ryan C. Gordon
91ec11ca1c
cocoa: Force an OpenGL context update when the window becomes key.
...
Fixes missing rendering on macOS 10.14 ("Mojave").
Fixes Bugzilla #4272 .
2018-09-26 20:10:32 -04:00
Ozkan Sezer
b790f7c7f0
SDL_string.c (SDL_PrintString): avoid MSVC signed/unsigned mismatch warning
2018-09-27 01:10:50 +03:00
Ozkan Sezer
f3ab23f1b4
SDL_string.c (SDL_IntPrecisionAdjust): avoid MSVC generating a memset()
2018-09-27 01:00:50 +03:00
Ozkan Sezer
e37d95f937
SDL_vsnprintf: implement precision for the integral value printers.
2018-09-27 00:32:15 +03:00
Sam Lantinga
ff07432006
Fixed bug 4265 - SDL window falls to the bottom of the screen when dragged down and stuck there
...
Alexei
On WM_WINDOWPOSCHANGED event, WIN_UpdateClipCursor() is called. SDL_WINDOW_INPUT_FOCUS is set even when the mouse pointer is not inside the SDL window and therefore ClipCursor(&rect) is called. When dragging the window and rect.bottom=800 (i.e. the bottom edge of the screen) the SDL window is clipped to the bottom of the screen and it is not possible to move it back to the center of the screen.
2018-09-26 11:17:43 -07:00
Ozkan Sezer
d7099fbf16
SDL_string.c: added comments to three SDL_FormatInfo members.
2018-09-26 20:47:34 +03:00
Sam Lantinga
f355625f9c
Updated version to 2.0.9
2018-09-26 10:08:14 -07:00
Ozkan Sezer
fcc9b1cd3c
SDL_vsnprintf: when '.' is specified, take precision as 0 if it is < 0.
2018-09-26 17:11:40 +03:00
Ozkan Sezer
a52fce6463
SDL_vsnprintf: string printer now honors the precision. (bug #4263.)
2018-09-26 10:40:02 +03:00
Ozkan Sezer
f86cde1073
SDL_vsnprintf: %.* and %* now parse precision and width. (bug #4263.)
2018-09-26 10:38:40 +03:00
Sam Lantinga
675c561fef
Fixed bug 4270 - Android HIDDeviceManager function needs to be public
...
Sylvain
Can't run an android app without declaring the JNI interface function as public.
2018-09-25 20:11:52 -07:00
Sam Lantinga
6631266fa4
Fixed bug 4268 - Android_JNI_OpenAudioDevice function has error
...
alittle
where iscapture == 1
1.param set error
(*env)->CallStaticIntMethod(env, mAudioManagerClass, midCaptureOpen, sampleRate, audioBuffer16Bit, audioBufferStereo, desiredBufferFrames)
param:audioBuffer16Bit need change to captureBuffer16Bit
2.logic error
if (is16Bit) {
// ALITTLE Modify the source code
if (iscapture) {
audioBufferFrames = (*env)->GetArrayLength(env, (jshortArray)captureBuffer);
} else {
audioBufferPinned = (*env)->GetShortArrayElements(env, (jshortArray)audioBuffer, &isCopy);
audioBufferFrames = (*env)->GetArrayLength(env, (jshortArray)audioBuffer);
}
// if (!iscapture) {
// audioBufferPinned = (*env)->GetShortArrayElements(env, (jshortArray)audioBuffer, &isCopy);
// }
// audioBufferFrames = (*env)->GetArrayLength(env, (jshortArray)audioBuffer);
} else {
// ALITTLE Modify the source code
if (iscapture) {
audioBufferFrames = (*env)->GetArrayLength(env, (jbyteArray)captureBuffer);
} else {
audioBufferPinned = (*env)->GetByteArrayElements(env, (jbyteArray)audioBuffer, &isCopy);
audioBufferFrames = (*env)->GetArrayLength(env, (jbyteArray)audioBuffer);
}
// if (!iscapture) {
// audioBufferPinned = (*env)->GetByteArrayElements(env, (jbyteArray)audioBuffer, &isCopy);
// }
// audioBufferFrames = (*env)->GetArrayLength(env, (jbyteArray)audioBuffer);
}
2018-09-25 20:08:51 -07:00
Sam Lantinga
9742633210
Removed redundant SDL_GetColorKey() call. (thanks Sylvain!)
2018-09-25 19:53:16 -07:00
Ethan Lee
f17afdc446
WinRT: Wait until audio device activation is complete and PrepDevice during OpenAudio
2018-09-25 01:45:12 -04:00
Sam Lantinga
ed5685aa59
Added 8bitdo SF 30 PRO controller support for Linux / DInput mode (thanks Frank Hartung)
2018-09-25 19:41:33 -07:00
Sam Lantinga
d4661b8795
Fixed building with newer Android NDK
2018-09-25 08:23:57 -07:00
Ozkan Sezer
acf03aea49
safer this way, just in case..
2018-09-25 09:20:56 +03:00
Sam Lantinga
2e6df0aaba
Fixed rare null pointer dereference
2018-09-24 20:31:24 -07:00
Sam Lantinga
3845ca6792
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
e5786b21c3
Fixed bug 4267 - linkage failure with --enable-hidapi because of missing libudev symbols
...
Ozkan Sezer
hidapi dynamic udev initial patch
2018-09-24 16:33:14 -07:00
Sam Lantinga
7aff227a2d
Support relative mouse for Samsung DeX on Samsung Experience 9.5 or later (Android 8.1 or later)
2018-09-24 11:53:04 -07:00
Sam Lantinga
f65bdeb358
Fixed whitespace
2018-09-24 11:49:25 -07:00
Drew Pirrone-Brusse
bb213856aa
Correct the name of the SDL shared library in CMake for Mac OS
2018-08-18 17:23:40 -04:00
Sam Lantinga
c4b6199246
Fixed bug 3166 - It would be nice, if SDL would support including SDL project as a subdirectory into another CMake project
...
Wayde Reitsma
After attempting to use SDL2 in the way described in this bug, I found the main issue was the includes not being added to the compiler command.
I found the issue was that the target_include_directories commands for the SDL2, SDL2-static and SDL2main targets only sets the public includes for installations using the INSTALL_INTERFACE generator expression.
I have written a patch to CMakeLists.txt that fixes this issue by adding another item to the target_include_directories commands, utilizing the BUILD_INTERFACE generator expression to correctly add the include directory during builds.
2018-09-24 08:41:59 -07:00
Sam Lantinga
a5c7d967d7
Removed button logging message
2018-09-21 09:41:21 -07:00
Sam Lantinga
5191684830
Added missing call to WindowsDeleteString()
2018-09-20 15:55:52 -07:00
Sam Lantinga
e11cbcfbe2
Added experimental support for Windows.Gaming.Input
2018-09-19 10:03:40 -07:00
Ryan C. Gordon
a2a70b23b1
cmake: correctly report Vulkan support at configure time (thanks, Tiago!).
...
Fixes Bugzilla #4262 .
--HG--
extra : amend_source : 7b1ebe533fe01925ace83d32db188c2f002fc9b1
2018-09-18 11:49:42 -04:00
Sam Lantinga
dc60849e53
Fixed NullPointerException if there's no singleton
2018-09-17 12:08:05 -07:00
Sam Lantinga
105bf84a49
Store the API device refcount on the device itself, so if the device is disconnected and we have multiple application references to it, we only free it once.
2018-09-17 11:35:24 -07:00
Sam Lantinga
46e033920e
Fixed creating an Android game controller mapping for HIDAPI devices on initialization
2018-09-17 11:35:22 -07:00
Ozkan Sezer
7c42592b86
do not export hidapi symbols from SDL dlls (bug #4259 ).
2018-09-15 14:28:10 +03:00
Ozkan Sezer
9c16559c88
acinclude: rename ax_gcc_x86_cpuid.m4.htm to ax_gcc_x86_cpuid.m4
...
--HG--
rename : acinclude/ax_gcc_x86_cpuid.m4.htm => acinclude/ax_gcc_x86_cpuid.m4
2018-09-15 09:24:04 +03:00
Ozkan Sezer
0a9f975af7
fix permissions
2018-09-15 08:11:50 +03:00
Sam Lantinga
6fd2001c4b
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
Sam Lantinga
534639b3f0
Guard against Steam Controller input when we're shutting down.
2018-09-14 18:31:03 -07:00
Sam Lantinga
9f17ce1ed2
Use atomic reference counting for the HID device object
2018-09-14 18:31:01 -07:00
Sam Lantinga
81d9677756
Fixed crash launching under Steam on Mac OS X
2018-09-14 12:41:29 -07:00
Sam Lantinga
1e2bdbb7fe
Fixed Chinese IME support (thanks 树子。!)
2018-09-10 23:01:33 -07:00
Sam Lantinga
0074b218ae
Fixed building on tvOS
2018-09-10 23:00:09 -07:00