2016-03-15 20:05:38 +03:00
|
|
|
/*
|
|
|
|
Simple DirectMedia Layer
|
|
|
|
Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
|
|
|
|
|
|
|
|
This software is provided 'as-is', without any express or implied
|
|
|
|
warranty. In no event will the authors be held liable for any damages
|
|
|
|
arising from the use of this software.
|
|
|
|
|
|
|
|
Permission is granted to anyone to use this software for any purpose,
|
|
|
|
including commercial applications, and to alter it and redistribute it
|
|
|
|
freely, subject to the following restrictions:
|
|
|
|
|
|
|
|
1. The origin of this software must not be misrepresented; you must not
|
|
|
|
claim that you wrote the original software. If you use this software
|
|
|
|
in a product, an acknowledgment in the product documentation would be
|
|
|
|
appreciated but is not required.
|
|
|
|
2. Altered source versions must be plainly marked as such, and must not be
|
|
|
|
misrepresented as being the original software.
|
|
|
|
3. This notice may not be removed or altered from any source distribution.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* \file SDL_syswm.h
|
|
|
|
*
|
|
|
|
* Include file for SDL custom system window manager hooks.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _SDL_syswm_h
|
|
|
|
#define _SDL_syswm_h
|
|
|
|
|
|
|
|
#include "SDL_stdinc.h"
|
|
|
|
#include "SDL_error.h"
|
|
|
|
#include "SDL_video.h"
|
|
|
|
#include "SDL_version.h"
|
|
|
|
|
|
|
|
#include "begin_code.h"
|
|
|
|
/* Set up for C function definitions, even when using C++ */
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
|
|
|
* \file SDL_syswm.h
|
|
|
|
*
|
|
|
|
* Your application has access to a special type of event ::SDL_SYSWMEVENT,
|
|
|
|
* which contains window-manager specific information and arrives whenever
|
|
|
|
* an unhandled window event occurs. This event is ignored by default, but
|
|
|
|
* you can enable it with SDL_EventState().
|
|
|
|
*/
|
|
|
|
#ifdef SDL_PROTOTYPES_ONLY
|
|
|
|
struct SDL_SysWMinfo;
|
|
|
|
#else
|
|
|
|
|
|
|
|
#if defined(SDL_VIDEO_DRIVER_WINDOWS)
|
|
|
|
#ifndef WIN32_LEAN_AND_MEAN
|
|
|
|
#define WIN32_LEAN_AND_MEAN
|
|
|
|
#endif
|
|
|
|
#include <windows.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(SDL_VIDEO_DRIVER_WINRT)
|
|
|
|
#include <Inspectable.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* This is the structure for custom window manager events */
|
|
|
|
#if defined(SDL_VIDEO_DRIVER_X11)
|
|
|
|
#if defined(__APPLE__) && defined(__MACH__)
|
|
|
|
/* conflicts with Quickdraw.h */
|
|
|
|
#define Cursor X11Cursor
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <X11/Xlib.h>
|
|
|
|
#include <X11/Xatom.h>
|
|
|
|
|
|
|
|
#if defined(__APPLE__) && defined(__MACH__)
|
|
|
|
/* matches the re-define above */
|
|
|
|
#undef Cursor
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* defined(SDL_VIDEO_DRIVER_X11) */
|
|
|
|
|
|
|
|
#if defined(SDL_VIDEO_DRIVER_DIRECTFB)
|
|
|
|
#include <directfb.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(SDL_VIDEO_DRIVER_COCOA)
|
|
|
|
#ifdef __OBJC__
|
|
|
|
@class NSWindow;
|
|
|
|
#else
|
|
|
|
typedef struct _NSWindow NSWindow;
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(SDL_VIDEO_DRIVER_UIKIT)
|
|
|
|
#ifdef __OBJC__
|
|
|
|
#include <UIKit/UIKit.h>
|
|
|
|
#else
|
|
|
|
typedef struct _UIWindow UIWindow;
|
|
|
|
typedef struct _UIViewController UIViewController;
|
|
|
|
#endif
|
|
|
|
typedef Uint32 GLuint;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(SDL_VIDEO_DRIVER_ANDROID)
|
|
|
|
typedef struct ANativeWindow ANativeWindow;
|
|
|
|
typedef void *EGLSurface;
|
|
|
|
#endif
|
|
|
|
|
Squashed 'Source/ThirdParty/SDL/' changes from a901827..fe37f87
fe37f87 Integrate SDL's original CMakeLists.txt into Urho3D build system. This commit combines 19 previous commits made on top of SDL 2.0.4 release.
d8d5ea6 Define WINVER in SDL_windowsjoystick.c if not defined. Related to #1629.
cacbcec Fix memory leak in SDL library.
60d7ac2 Disable the in_title_click data & focus_click_pending tests for SDL windows mouse warp, as it seems to lead into issues when regaining focus. Closes #1258.
495d6da Utilize new SDLActivity's get arguments feature.
1277c8f Fixes code that is not compliant with the C89 standard when compiling with MSVC
60ba32f Reset SDL's internal in_title_click variable whenever a normal mouse up/down event is received. Fixes #1151.
91e81fa Parameterise the asset directory indicator character(s) using env-var.
6511eca Add new JNI function to interface with AssetManager.list() method. Fix #855.
b2a6c09 Fix red screen issue on affected Android devices models, e.g. S3.
0ff8347 Clean up SDK include dirs. Refactor FindUrho3D CMake module. For Travis CI - add new steps to install the Urho3D SDK and to reference Urho3D library from the installed SDK.
e5defe1 Return a writable documents directory on iOS. Contributed by att.
69215ae Fix memory allocation for the resources directory on iOS.
8bc2141 Added functions to remove one recorded touch gesture, or all touch gestures.
4a8cac5 Replace Char event with TextInput event for CJK IME support.
bb9249c Gesture recording/load/save support and gesture events. SDL fixes to gesture events. Closes #304.
43958df Android fixes. Bump required Android SDK required for compiling to 12 due to SDL joystick code. Removed the activity finish request code, as SDLActivity should now cleanly wait for the native thread to exit.
aa5a2ef Merge SDL 2.0.3.
5d7cfcc Fixed bug 3460 - docs/README-macosx.md: g++fat.sh should be g++-fat.sh in universal build command
100c615 Fixed bug 3461 - Implement TEXTINPUT events for Haiku
91af9fa Fixed crash on Mac OS X 10.10 and earlier
8bc6a7e Fixed bug 3369 - RaspberryPI ability to specify a Dispmanx layer
a416743 Worked around a crash on Mac OS X 10.10 and earlier, thanks to Eric Wasylishen.
e4105e7 Fixed bug 3444 - Android-TV: no more handling of back button on remote
aa631de Partial fix for bug 3092 - Statically link sdl2 with /MT for msvc
d40feeb Fixed bug 3456 - SDL_GameControllerOpen fails if the joystick subsystem isn't initialized
6eedda7 Fixed bug 3458 - x11: reset deadkeys in StartTextInput/StopTextInput
98f585e Linux: Added missing scancodes.
3ae8bbe Windows: Fixed not removing the always added hint callback on quit.
8704745 Linux: Removed not needed platform info from entry in controller database.
558617e Linux: Fixed compile warnings about unused variables.
cbe91a1 Android: Split long line in README.
66335e4 Removed unused constants in controllermap program.
d88450e emscripten: check if device pixel ratio has changed
420b160 Fixed compiler option warning for 64-bit builds on Visual Studio 2008
85e2c13 Fixed bug 3453 - First mouse button input after a drag and drop event is ignored
1090d1f Fixed bug 3452 - Getting unicode arguments for the main entry point on Windows
618b7a5 Fixed warning about redefining DECLSPEC
f700179 Fixed warning about missing field initializers in SDL_DBusContext Static variables are automatically initialized to zero.
90e4654 Fixed processing mouse and keyboard events in hatari, which uses the old SDLMain.m without creating an SDLApplication instance
df4c882 Fixed bug 2758 - Android issues with NDK r10c and API-21
52aad80 Fixed building with cmake when fcitx isn't installed
b4b3490 Fixed divide by zero if setting integer scale without setting logical width and height
bc850ed Fixed typo getting the drawable size
4e004d5 Fixed bug 3328 - Race condition in Wayland_VideoInit
f4c5462 Fixed bug 3451 - Raspberry Pi Raspbian SDL_assert triggered sometimes at RPI_WarpMouseGlobal
1e2589c Fixed black screen on Steam Link
307d753 Added support for the PS4 Slim controller, model CUH-ZCT2U
ed5b8e1 Fixed black screen on Steam Link
8cb0e92 Fixed bug 3355 - false "Invalid renderer" after creating an "opengles2" renderer.
3df3289 Added a note on how to allow non-root applications to increase their thread priority on Linux
f0a9a82 Work-around for a hang when USB devices are unplugged, contributed by James Zipperer
52fed49 Backed out change 92dc590a7116 which was: Fixed bug 3320 - SDL_windows_main.c defines both console application entry points With that change only the wmain() entry point was defined, and applications that linked with main() would no longer build.
6ffe2a5 Added note for David Carlier's work on OpenBSD
e7598ec Build SDL as universal binary
11f5755 Fixed build warning
ebf3f85 X11: Fixed compile warning about unused variable.
c514ae0 Removed empty statements in tests.
fdd0e41 Linux: Removed redundant function call.
0c68747 Fixed pointer signedness warning
b722466 Updated WhatsNew with 2.0.5 changes
97ec4f1 Fixed comment for new pixel formats
f91b4a6 Fixed bug 2923 - Add SDL_PIXELFORMAT_RGBA32 for byte-wise 32bit RGBA data
4e326f3 cmake: Now generates Wayland protocol source bits like the configure script.
faa1225 Fix invalid read from poor setlocale usage.
97db165 Fixed bug 3096 - SDL_BlitSurface with overlapping source and destination
5032214 Fixed a memory leak in function GL_RenderReadPixels
63bf89c Use SDL C runtime strlen()
42a861a alsa: more tapdancing to enumerate physical hardware devices.
3111f9a Made #if defined(X) consistent
9bc3025 Make sure we have iconv.h before building with it
1b0a9a8 Fixed compiling of three test programs with C++.
91423b4 Linux: Fixed mixed up scancodes.
de715c7 iOS: Updated demo README.
31a036e Fixed building and using fcitx IME support on Linux
1b032a0 Implemented SDL_GetHintBoolean() to make it easier to check boolean hints
98fbc3f SDL_HINT_WINDOWS_DISABLE_THREAD_NAMING
a2532cd ALSA_snd_pcm_drop() can hang on some systems (Steam Link) so don't use that when shutting down the ALSA audio driver.
de631d2 Fixed bug 2824 - Add Fcitx Input Method Support
d14ce58 Fixed bug 3438 - SDL_GameControllerEventWatcher: Log on event with value >= k_nMaxReverseEntries
701e14a Improve X11 key handling when XKB isn't available + add xvnc scancodes.
ee1f18b Additional patch to correct the number key assignments, and add assignments for keys that were missed
b07188e Fixed bug 3063 - Wayland: SDL resizes EGL surface to 0x0.
62d6856 Fixed bug 3061 - Selecting the dummy video driver on Mac OS X results in an error
a43ff2f Fixed bug 3043 - fix alsa configury and cmake checks
b579305 Fixed bug 3029 - software renderer cuts off edges when rotate-blitting with a multiple of 90 degrees
cccf665 Fixed bug 3022 - SDL_UnlockMutex(SDL_EventQ.lock) in SDL_PeepEvents can cause error when lock is null
b33fde0 Fixed bug 2983 - Update Android.readme to include Tegra Graphics Debugger compatibility tip
c55119c Converted README documentation to DOS text format
c54556c Fixed bug 2957 - De-reference rz_src without NULL check in SDLgfx_rotateSurface function
dd42a1c Fixed bug 2956 - De-reference videodata without NULL check in X11_DispatchEvent(_THIS) function
672afed Fixed bug 2952 - SDL_MixAudioFormat does not support audio format AUDIO_U16LSB/AUDIO_U16MSB
b0f8e0b Fixed bug 2924 - SDL_CreateRGBSurface[From] versions that take SDL_PIXELFORMAT enum
d53007a Fixed bug 2885 - SDL_stdinc.h doesn't need to include iconv.h
5939542 audio: Backed out the audio-thread detaching changes.
6e0f9b5 Fixed bug 2833 - Access Violation on SDL_PollEvent after init, delay and quit of joystick subsystem
d3e6678 Fixed bug 2832 - Inverted arrow-key navigation in MessageBox
c680df8 Fixed recentering triggers when the application doesn't have focus
0438241 Fixed bug 2823 - Release events for triggers receive wrong centered value
0d8bea4 Fixed bug 2808 - Fix SDL reporting wrong window size on resume
beedecb Applied Ubuntu patch bug_822210_fix_sdl2-config.cmake_whitespace.patch
ff255ca audio: Don't trust audio drivers to drain pending audio.
ae70bcd audio: better way to calculate buffer drain wait times.
764d036 audio: threading and device hang improvements.
11cf279 Some systems include both "default:" and "hw:" for the same usb device
c82d1cc fix for finding ALSA hotplug devices on Steam Link
069b980 Backed out a very unsafe change that was trying to prevent audio hang at quit.
c0ceb21 ensure SDL_AUDIODEVICEREMOVED gets sent when hotplug removes a device
09ecd06 fix deadlock on close device
0b40668 fix audio deadlock
7a98ee6 Modified the custom cursor test to be able to load BMP files as cursors
253cd06 Fixed bug 3021 - HapticOpenFromJoystick() problems
8914645 Fixed compiler warning about missing field initializers
705360d Fixed compiler warning - this should have been a const char pointer
3070ead Fixed potential buffer overflow in SDL_vsnprintf() (thanks, Taylor!).
7db0377 Fixed bug 2157 - Caps Lock key produces key down & key up events while key is still pressed.
321fdcc Fixed setting the version info in the shared library when using CMake
f0a55e2 Android: Fixed compile error.
820e748 Fixed wrong pixel format if reading pixels from OpenGL renderer.
c81f111 Added brackets to function names in header comments so that doxygen links them.
b84ac1f Fixed MinGW-w64 build warnings in SDL_render_d3d11.c
1515c1f Added SDL prefix to local IID constants
c5140ee WinRT: build fix in joystick code
bd4b1b3 Fixed bug 3437 - build error for WinRT/UWP .dlls, caused by fix for SDL bug 3336
8129eb5 Fix tabs -> spaces
7ee85d9 Fix bug 3436 - SDL_RaiseWindow not working on windows
94bec2e Fixed bug 3065 - Screen is flickering during closing on-screen keyboard on Android
6511fa6 Fixed bug 3078 - cmake: fix sdl2.m4 install location on cross hosts
f30f660 Fixed build on older Raspberry Pi environments
ece2bc8 Fixed warning and code style in SDL_evdev.c
8c37d6b Fixed build for X11
9f46868 Fixed windows build
b675802 Fixed build warnings and errors
179f2be Fixed bug 3107 OSX - Process events in SDLApplication to fix integration with CEF.
744356e Fixed bug 3116 - renderer->hidden in SDL_RenderCopy(Ex)
66c7d19 Fixed bug 3130 - Spacebar not responding
1b70faf Fix SDL not resizing window when Android screen resolution changes
bc36327 Fixed bug 3134 - CalculateXRandRRefreshRate() returns incorrect refresh rate due to floating point truncation.
0b2e713 Call setlocale + XSetModifiers before XOpenIM, Work around ibus+xim duplicate events.
680a6a1 Fixed bug 3138 - c_dfDIJoystick2 already defined in dinput8.lib
34ba394 Fixed 3149 - Mouse Pointer Raspberry Pi corrupt when moving over screen edges
f77ae11 Fixed bug 3157 - Rudimentary touchscreen support in SDL_evdev (supports Raspberry Pi)
7b44ab2 Fixed bug 3159 - SDL_blit_slow with BLENDING does not work
e3d8894 Fixed bug 3161 - SDL_WINDOWEVENT_EXPOSED event possible queue overflow
2803a1f Fixed bug 3165 - define numbers don't match types in Swift
894da7c Fixed bug 3169 - GLES2_CreateRenderer does not check SDL_GL_GetAttribute result, causing use of uninitialized data
7e0287b Fixed bug 3174 - SDL_SetRenderTarget clip rect
c14c8a1 Removed carriage returns from previous patch
70101d5 Fixed bug 3405 - Wrong default icon size on windows systems
5f44cde Fixed bug 3422 - OpenGL ES 1.1 renderer: SDL_UpdateTexture breaks later function calls (missing glDisable)
d5032ac Fix CMake setting an incorrect video backend on iOS
fd8e31b Fixed bug 3424 - SDL_GameController: Increase k_nMaxReverseEntries
6b80bec Fixed bug 3262 - Premake scripts are not compatible with "Genie" (premake fork)
13f3fd5 Fixed bug 3268 - CMAKE: ios fixes
e636f59 Fixed bug 3276 - build-scripts/showrev.sh prints the tip, which isn't useful if you're on a different -# branch, or just not sync'd to the tip.
7963feb Fixed bug 3301 - IBus support on Linux with CMake
8d7e011 Fixed bug 3305 - Fixed TextInput status when the keyboard was dismissed with the dismiss key on the iPad
94bfcde Force WM_PAINT events on window resize
c897935 Fixed bug 3318 - testime.c enhancement with GNU Unifont support
8ad2134 Fixed bug 3319 - Getting the POSIX out of testqsort.c
ec9642c Fixed bug 3320 - SDL_windows_main.c defines both console application entry points
574cc25 Fixed bug 3322 - Missing error checking in testaudioinfo and testaudiohotplug
8296b3f Fixed bug 3323 - SDL_LogOutput prints message twice on Windows when linked with libc
4eb41f3 Reset dead keys when the SDL window loses focus, so dead keys pressed in SDL applications don't affect text input into other applications.
e0095ad Fixed bug 3332 - Win32: reset deadkeys in StartTextInput/StopTextInput
a5e4a03 Fixed bug 3338 - console_wmain doesn't null terminate the argv array
a64ed63 Fixed bug 3345 - SDL_RenderClear inconsistency with ClipRect
adea337 Fixed bug 3347 - OpenGL ES renderer doesn't flip projection matrix for target textures
f1c567b Fixed bug 3349 - GLES2_RenderReadPixels doesn't use target texture format
225b99c Fixed bug 3350 - GL renderers don't need to flip rows after reading back pixels from the target texture
b8f4560 Fixed bug 3352 - Adding alpha mask support to SDL_SaveBMP_RW
e812846 Only use GCC pragmas when we're building with GCC
469d836 Fixed bug 3361 - Texture color modulation doesn't work with active NONE blend mode (opengl and opengles)
6c7cd4c Fixed bug 3362 - OpenGL renderer doesn't check if framebuffers are supported when creating target textures
02ae0da Fixed bug 3368 - SDL_Blit_Slow doesn't ignore alpha values in colorkey comparison
1d23b0f Fixed bug 3373 - OpenGL implementation differences of glDrawTexfOES
d71fc04 Fix running autogen.sh out-of-tree As done in GNOME's jhbuild building tool.
7f13262 We should be using a string constant for the strftime format string
d9190db Fix "format not a string literal" errors With GCC 6.1.
2948e51 Add gamecontrollerdb lines for SFC30 controller in various modes
c3ab42c Commit KEYCODE_SPACE as text input on Android
b26da9c Fixed bug 3336 - Failure to build with MinGW-w64
f4a55d3 Fixed bug 3388 - Fail to build src/thread/windows/SDL_systhread.c on MinGW 4.9.3
0d17b15 iOS: Removed unused constant in demo.
a604405 Fixed crash if allocating memory for mouse clicks failed.
77f3e90 windows: Removed hardcoded "1" for mouse clickthrough hint.
efa4b74 haiku: Patched to compile.
629e8b3 windows: fix borderless windows at desktop resolution (thanks, Evgeny!).
59a4809 x11: fixed incorrect SDL_GetWindowPosition() after resize (thanks, Jason!).
68abf12 Added SDL_SetWindowResizable(). (thanks, Ethan!)
d7c4e4a Fixed bug 3426 - Fixes for joystick related issues
82e8069 Fixed bug 3427 - Android accelerometer z-axis incorrect
295b859 Fixed bug 3429 - Update AM_PATH_SDL2() to also check for SDL2.framework
97b094e Added debug output for new window events
9961af2 Implemented SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH on X11
71e9b9f Added Windows support for SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH
5d60a58 Generalized the hint for whether the application gets a mouse event when clicking on the window to activate it, and is now named SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH. The behavior is defined to not receive the click event, and this hint allows you to override that.
273f71a When clicking on a window to give it focus, don't pass the mouse click to the application.
ee85553 Updated Linux notes on building with Mir and Wayland support.
7948587 Updated version to 2.0.5 in preparation for release
bd1799c Updated configure script.
c6bf0b8 iOS: Updated comment in demo.
ef9bde2 Enable SDL_LoadObject on iOS 8+ and tvOS.
d7b455f tvOS launch images are now properly supported.
448940e Update the code for the iOS demos to handle modern devices. Fixes bug #3337
d3410d3 Don't try to load a launch storyboard on tvOS (it doesn't use them).
1b8e2f3 iOS/tvOS: Try to load the launch screen as a storyboard. Xcode 8 compiles it as a storyboard instead of a nib.
2e80731 iOS/tvOS: Always send SDL_WINDOWEVENT_FOCUS_GAINED when a window is created on the main screen (fixes bug #3395).
053c6de Use OS-provided click counts on macOS and iOS for mouse press and release events.
9ec0713 Fix mouse wheel events on macOS 10.12 (thanks Eric Wasylishen!)
9a227e9 Mir: Add gamma support set/get. Still need one more function to complete the set
4f62256 Mir: Add fixme (waiting for a public api to be added)
e2434a9 [Mir] Move to the new MirDisplayConfig API
546554a Mac: Fixed markdown formatting in README.
42f3ecb Mac: Fixed whitespace around function return type.
0f1075b Fixed compiling of three test programs with C++.
7cbbd89 Android: Fixed two warnings about unused variables.
cac05aa Handle audio interruptions on iOS/tvOS. Fixes bugs 2569 and 2960.
0378b12 Xcode/mac: fix building standalone static and shared libraries.
597bf22 emscripten: get even more aggressive about audio device closing.
d2cb290 Recommended settings from Xcode 7.3.0
9b769a9 Fixed warning with Xcode 7.3.0
bc55781 Updated URL in a comment
3a2d9ce Added a new hint SDL_HINT_APPLE_TV_REMOTE_ALLOW_ROTATION.
5160ba4 tvOS: Add drop-file support
8d2e2aa Fixed set of libraries needed to build on Mac OS X
ed62fd2 Hopefully fixed the cmake build on Mac OS X
1b61eae Fixed building new coreaudio driver on Mac OS X
a98de9e CoreAudio iOS/tvOS: Use AVFoundation instead of AudioSession. Fixes audio on tvOS.
d3f9978 Fixed building for both iOS and tvOS on Xcode 8
a1e419f Fixed including OpenGL ES on iOS without any other SDL headers
2cbc2b9 Allow targeting tvOS
dcc80b6 Fixed spacing
dcc8498 Fixed accidental call to SDL_PrivateJoystickHat()
398a513 Initial Apple TV / tvOS support.
5935e90 Enable more compiler warnings in the Xcode projects (based on Xcode 8's suggestion), made some integer downcasts explicit.
f6a0ed8 Only prevent the default browser event handling when the specific event types aren't disabled by the user, patch contributed by Jonas Platte
7e29f2a Add mapping for media keys
a9c5c0a use Module.createContext for 2D rendering in emscripten
87fcf49 add some detail to fullscreen workaround comment; version 6
0666f33 only unset fullscreen flags if fullscreen failed
8d7af3e use screen resolution instead of canvas size
1f6196f Fix full screen mode in Firefox, which was broken by 9d4beb2
a45bf24 Support SDL_SetWindowTitle() via Module['setWindowTitle']()
16ce364 Remove unused variable warning from Emscripten build in Emscripten_HandleFullscreenChange().
1153627 Fix CMake CMAKE_REQUIRED_FLAGS handling to preserve existing CMake flags required by Emscripten toolchain.
467fa3d Unpress all keys on blur to avoid stuck keys
5220e32 Listen for blur and focus events on window instead of canvas
3bd567b Mouse events use CSS coordinates, so don't scale by pixel_ratio
fd627cf Accumulate subpixel mouse motion so motion is not lost.
5f08d5e Fix of mouse events in browser without pointer locks
16b7d18 optimize Emscripten_UpdateWindowFramebuffer
d642899 optimize a getValue
7c5a528 Include timers when using cmake (#29)
398f20c send mouse move on enter/leave
b1060d9 listen for mouse up on document (fixes mouseup outside canvas)
8b9e766 use SDL_SetMouseFocus
c35f8fe simplify fullscreen handling using new fullscreen_strategy api, patch contributed by Charlie Birks
fa82ab5 use css size for touch normalisation
372ca0e Reverted previous commit which breaks game controller input processing.
1019891 Suggestion from Apple: use kCFRunLoopCommonModes which does more complete event processing
c19a7e8 emscripten: special case to make SDL_ShowSimpleMessageBox() work.
450af28 emscripten-buildbot.sh: exit with an error if configure/make fail.
546eb95 mac: Patched to compile with CMake project.
f3c5574 coreaudio: Move from AudioUnits to AudioQueues.
2d2aede coreaudio: capture devices should let the system allocate the render buffer.
c89347a coreaudio: Replaced an int with an SDL_bool.
e41b4d3 coreaudio: Move some variable declarations to the top of the scope.
641bf4c Fixes building SDL on Ubuntu 16.04 with Mir headers installed
aa51d46 wayland: Add support for relative mouse mode, by Jonas Ådahl <jadahl@gmail.com>
44760bd wayland: Build own version of core protocol
1d3cd63 Wayland: Set "class" for each window we create This will be used by Wayland compositors to match the application ID and .desktop file to the SDL window(s).
fc0551d emscripten: Be more aggressive when closing audio capture devices.
68dcd6e WinRT: added an extra NULL pointer check for SDL_*ScreenSaver() backend code
474fc17 Mir: Add mouse grab support (requires mir 0.24)
63c0ba2 Fixed log message in audio capture test program.
aee365b Android: Removed unused internal function.
a3b6299 Android: Fixed misleading warning in log output (thanks, Sylvain!).
da705f6 Android: Fixed missing mouse motion events while button down (thanks, Sylvain!).
74cf2bf Fixed compiling if filesystem is disabled (thanks, Elias!).
2057ced WinRT: added SDL_*ScreenSaver() support; fixed crash when restoring app from screensaver
a1fec97 Fixed sorting and name of XBox wireless controller entry
144cbcb Merged Change: 3576099 from rel/streaming_client
cc18c09 WinRT: patched to compile
3caa2a8 cocoa: Fixed incorrect autorelease, noted by static analysis.
18a636e nacl: Patched to compile.
f8548a2 Patched to compile on Haiku.
b8e34b3 Merge audio capture work back into the mainline.
74eda00 Patched to compile.
8de6259 alsa: Implemented hotplug support, cleaned up device names.
1255ef8 ios: patched to compile.
3d116ad alsa: don't enumerate virtual devices, just physical hardware.
f98a06e Added SDL_PrivateJoystickAdded() and SDL_PrivateJoystickRemoved() Updated the removal code to iterate over all joystick add messages instead of just the first one.
b97a48e commit 1170112da3776fdb06425f62d57b63144c33dc51 Author: James Zipperer <james.zipperer@synapse.com> Date: Sun Aug 21 01:19:19 2016 -0700
7d1e740 Emscripten: Fixed crash if closing removed joystick (thanks, Sylvain!).
ea2a180 Android: Fixed crash if closing removed joystick (thanks, Sylvain!).
d5a6c71 WinRT: fixed bug where Win10 GameBar, when shown + hidden, might not restore a cursor's hidden state
7276d88 Added link in header comment.
7cc86e8 Emscripten: Fixed opening previously closed joystick.
e688740 Android: Fixed opening previously closed joystick (thanks, Sylvain!).
f098bb1 testaudiocapture: ask for way more output samples.
497af04 emscripten: send fake mouse events for touches, like other targets do.
f03b539 emscripten audio: check for an "undefined" object, remove some console.log().
fd200e0 audio: Cleaned up "extern AudioBootStrap" list.
7ab6161 audio: Renamed some internal driver symbols in various targets.
1ef00d5 android: implement audio capture support.
82140ec directsound: Implemented audio capture support.
6557ea0 windows: directsound should also map audio device GUIDs to proper names.
f2e2d65 audio: Patched to compile on C89 compilers.
da5e820 emscripten audio: fix timer on capture's silence callback.
938aa68 directsound: recalculate audiospec size before creating secondary buffer.
1a595df emscripten audio: Added audio capture support.
7ab0405 Added a FIXME.
7fd7e88 testaudiocapture: open capture device to same spec as output device.
d648625 audio: Only allocate fake_stream if we're using the standard audio threads.
6d4ba05 audio: simplifed check for internal callback.
cb8e57b [ OSX ] enables Xbox One S Guide (System Main Menu) button detection. the one possible impact is that since button identifiers on OSX are just their sequence in the HID report descriptor we might change the button order, and any existing/saved mappings may get their order changed.
bd3c62f dsp: Implemented audio capture support.
411ece1 winmm: Try to get full device names from the Windows Registry.
1096774 winmm: Added a FIXME for truncated device names.
007a2a8 winmm: Implemented audio capture support.
f9e9b84 Add Xbox One controller GUIDs to the XInput filter in the DirectInput joystick driver.
bcfb572 disk audio: Make default i/o delay match what device is meant to be running at.
602c102 disk audio: Implemented "capture" support, cleaned up some things.
532edaa testaudiocapture: use capture device buffer queueing, for better test coverage.
42e7791 audio: Implemented buffer queueing for capture devices (SDL_DequeueAudio()).
3614f6b testaudiocapture: don't use fullscreen for the window.
b441df5 audio: SDL_ClearQueuedAudio() should free everything but two packets.
ac07b3e nas: initial shot at audio capture support. Compiles, but not tested.
18b414b audio: Changed OnlyHasDefaultInputDevice to OnlyHasDefaultCaptureDevice.
fbb34c3 audio: changed some SDL_memset() calls to SDL_zero(), other minor corrections.
26a7583 audio: Removed internal SDL_audiomem.h and macros.
84e966c audio: Clean up some CloseDevice() interface details.
66f1d7b arts: backed out audio capture support.
6fb74f5 dummy audio: Patched to compile.
e0a678c Fixed two old identifiers in header comments.
f73dc1f PSP: Fixed memory leak if video init failed.
d932507 WinRT: Removed not needed SDL_zerop() after SDL_calloc().
9cb82d5 Added brackets to function names in header comments so that doxygen links them.
31fc31c dummy audio: Implemented dummy audio capture support. :)
e717a37 bsdaudio: first shot at audio capture support!
a0e627f bsdaudio: this appears to be using the wrong variable...?
db0c70b arts: Patched to (maybe) compile.
3ed7e95 arts: implemented audio capture support.
2883d9c alsa: capture devices don't need a mixbuf allocated.
047cd6c testaudiocapture: made test app interactive.
000e5b9 coreaudio: Implemented audio capture for iOS.
effa79c testaudiocapture: Make a simple green/red window when recording/playing.
7fc1368 alsa: Implemented audio capture support!
94da231 alsa: Cleaned up the 5.1 swizzle mess a little.
c715b1b audio: a little more robustness in the capture device's thread.
4245d51 pulseaudio: Implemented audio capture support!
7793384 audio: implemented higher level infrastructure for running capture devices.
ff06555 audio: Made some SDL_AudioDevice fields atomic.
9396cce testaudiocapture: Let specific devices be opened.
f38c23d BUGS.txt: Bugzilla supports SSL; changed link to https:// ...
0a21fed audio: changed some internal ints to be SDL_bools.
9f68a03 nacl: unlock audio thread mutex when done with it.
40504bd audio: Make SDL_AudioDevice::shutdown an atomic value.
d8cbd0f audio: Implemented capture support for Mac OS X CoreAudio.
d2873d0 audio: Initial bits to enable audio capture support.
cea5990 Fixed information in touch README and changed identifiers so doxygen links them.
a07ce85 Android: Updated a comment.
b8ba8f4 Android: Replaced deprecated AbsoluteLayout with RelativeLayout.
1d6a327 Linux: Fixed memory leak in haptic implementation (thanks, Martin!).
437ec0a Pandora: Fixed memory leak in video implementation.
2a8870a Pandora: Fixed compile warnings in video implementation (thanks, Bombo!).
3aafe64 ALSA: Fixed adding wrong status to error message (thanks, romain145!).
87009d4 Pandora: Fixed SDL version in debug output.
c69d353 Pandora: Updated SDL version in Makefile.
7cd228c Pandora: Fixed referring to no more existing atomic source file in Makefile.
082159f Updated comments in video implementations.
778b4fd Pandora: Fixed compile error in video implementation (thanks, Bombo!).
70603ac Android: Fixed androidbuild.sh not working on OS X (thanks, Steffen!).
9272534 Android: Fixed missing export of a JNI function (thanks, Andrii!).
9c5eea9 Android: Fixed compile warning about a missing prototype (thanks, Sylvain!).
8522dff Fixed compile warnings about evaluating undefined identifiers.
d1caaa4 Tests: Would be wise to compile this
5564d04 Tests: Somehow tabs leaked in...
962f8d8 Tests: Add a manual test for a custom cursor (Taken from the API docs)
bd6c926 Tests: Mir needs the window to swap at lease 1 frame for the cursor to show. So render in testwm2
e7823e8 MIR: Fix system cursors. Been broken since custom cursor support was added!
2e8c081 Android: Added new key codes from API 24.
ebcd2e8 iOS: Fix an OpenGL ES error when rotating the device if MSAA is used (thanks Cole Campbell!)
93d2998 Fixed three source comments in tests.
68ef914 Added a simple test case for SDL_sscanf() to tests.
38b769c Fixed freeing strings created by strdup() with SDL_free().
71e7b71 Mac: Fixed crash if SDL_GetDisplayDPI() got NULL pointers for output parameters.
fedb2f1 Fixed compile warnings in test library about formats strings not being literals.
87a3a9d Mac: Updated file name in README.
86b7c57 Fixed Bug 3147 - Windows: Crash when resizing Window since hg 333216331863
246255b Mac: Updated availability macro in build script.
8b84c36 MIR: Add better error handling for a failed connection
4e0798b MIR: Support relative mouse mode
20cebbb Windows: Fix other window positions/sizes being changed when exiting exclusive fullscreen (bug #3315, thanks Simon Hug!)
0d2837a Mac: Fix a crash when SDL is compiled with SDL_MAC_NO_SANDBOX enabled, by increasing the stack size of the mouse tap thread back to OS X' default of 512 KB.
e2f5a30 Removed Mac OS 10.5 support (bug #3137). Also fixed a warning about deprecated Carbon code when using SDL_audio (bug #3127, thanks Dominik!)
1746440 Updated documentation of SDL_IsScreenSaverEnabled().
977f1e0 Windows: Fixed missing error message if SDL_GetDisplayDPI() failed.
b82ec16 X11: Fixed typos in error messages and source comments.
024c8f7 X11: Fixed missing error message if SDL_GetDisplayDPI() failed.
65f3835 WinRT: workaround a possible Windows bug, whereby hiding cursors, disables mouse-moved events
2645c41 X11: Fixed SDL_GL_GetSwapInterval() returning -1 if interval is unknown.
087d1dc EGL: Fixed SDL_GL_GetSwapInterval() returning -1 on error.
a34752c Updated documentation of SDL_CreateWindow() and SDL_CreateWindowFrom().
4f43ef2 iOS: Added brackets to function names in README so that doxygen links them.
ace33ee Fixed missing error message if SDL_GetDisplayDPI() is unsupported.
13dddf1 Fixed crash in shape test program if memory allocation failed.
104af62 Fixed error return values in filesystem test program.
410827f WinRT: allow on-screen keyboard to be shown via SDL APIs, Win10/UWP only
62a5ddb Fixed memory leak in game controller test program.
788f608 Updated documentation of SDL_HINT_THREAD_STACK_SIZE in header file.
75f76ed Added missing links at documentation of SDL_FreeCursor() in header file.
de04db8 Cocoa mouse code: Replaced NSPointInRect with NSMouseInRect (thanks Eric Wasylishen!) Fixes bug #3312.
aaeb21b Mac: replaced a deprecated CGSetLocalEventsSuppressionInterval call that I missed in commit f0645cd8fd39
f2cc87e Android: Updated name of README file.
691f045 WinRT: another README tweak
638d7e1 WinRT: README tweaks
c5a78d3 Wayland: Removed not needed including and setting of errno.
dd03d06 Fixed markdown formatting in porting README for doxygen output.
085f0f8 Added missing error return in test program.
9c370af PSP: Fixed compile error.
41093fd WinRT: build/link fix
a894234 Patched to compile on Haiku...?
2724ca1 windows: created threads' stack sizes should be reserved, not committed.
591371d Patched to compile on various platforms.
2ef7fa3 threads: Move SDL's own thread creation to a new internal API.
db39f16 threads: Handle SDL_HINT_THREAD_STACK_SIZE at top level, implement elsewhere.
2001a71 WinRT: bug hack-fix - gamepad detection was failing on Xbox One
cdfd49c iOS: Fixed SDL_GL_CreateContext crashing instead of returning null when a GLES3 context is requested on iOS 6 and older.
f09f435 alsa: Make device enumeration robust against weird results with NULL strings.
9811c0e iOS: Also do the Dictation crash workaround before executing the animation callback.
bcb782f Add a new hint SDL_HINT_MAC_MOUSE_FOCUS_CLICKTHROUGH, which allows mouse click events to occur when clicking to focus a window in Mac OS X.
2a4cda5 iOS: Workaround for a crash after Dictation is used.
7f88cc0 iOS: Fixed compiling demos on C89 compilers.
c1eb482 PSP: Fixed returning success from unsupported SDL_RenderReadPixels().
1ed6926 PSP: Fixed returning success for unsupported SDL_SetTextureColorMod().
4c5cebd PSP: Fixed missing error message for unsupported SDL_CreateWindowFrom().
5ac3e2b Updated info about required Ubuntu version for Mir support in README.
1f2d4a9 Wayland: Fixed missing error message if creating a custom cursor failed.
ee01a42 Removed not needed SDL_WINDOW_SHOWN from chessboard test program.
cdebe3d iOS: Removed not needed SDL_WINDOW_SHOWN from rectangles demo.
fe02f94 iOS: Fixed keyboard demo ignoring quit requests and window closing.
7b39911 iOS: Replaced #import with #include in two demos.
ed8d693 iOS: Restored older version of rectangles demo.
35cd6f6 iOS: Updated SDL version in demo README.
8f72e07 Fixed comment in gesture source.
58d97ae Mac: avoid calling CGSetLocalEventsSuppressionInterval, it was deprecated in OS X 10.6.
a1c1b64 Windows CMake: don't try to link dxguid, it's unavailable when using Visual Studio's XP-compatible toolset.
e1e235c Wayland: Fixed crash if memory mapping failed while creating a custom cursor.
ee66d57 Wayland: Fixed storing a theme cursor which is never used in video data.
aff83da Pick up new display mode information after a mode change (Windows only right now).
7a159d4 Quick fix for qsort off-by-one error.
0765eef Emscripten: Deactivated custom cursor support because it created system cursors.
0337adf Wayland: Fixed drawing created cursors without transparency.
dc0f5b5 Wayland: Fixed showing created cursors incorrectly before the first redraw.
e8db21a WinRT: Removed dead code and fixed memory leak if allocation for driver failed.
7d41ef9 Fixed compiling IME test program with HAVE_SDL_TTF on C89 compilers.
76322d4 Removed unnecessary include statement in test program.
8fc2032 A simple test program for SDL_qsort().
1999ffe Another commit to test revision control.
780d219 Minor tweak to a README to test Mercurial server.
3e91a9b Fixed infinite timeout in SDL_WaitEventTimeout() - thanks Константин Гончарик
be57775 Allow mappings to be added before GameControllerInit
5024f42 alsa: Implemented basic device detection.
9061ebe x11: Fix a few more XMoveWindow() calls to adjust for border size.
dd10fff x11: Deal with window borders better.
587245b Raspberry: Fixed crash if memory allocation for cursor failed.
15d7854 Fixed compile warnings about unused variables in IME test program.
fb2a2ce Wayland: Fixed fault in event handling which might have caused a crash someday.
3cbc1d0 Wayland: Fixed crash if allocating memory for cursor failed.
db1d8e8 Replaced strlen() with SDL_strlen() in IME test program.
7374150 wayland: Add wl_proxy_marshal_constructor_versioned sym
fe40c7d Mir: Do not use opengl to find the valid pixel format if we dont use opengl
2679809 Mir: Replaced memcpy() with SDL_memcpy().
c31a05d Mir: Fixed comment at conditional compilation macro.
35ad322 Fixed doxygen warnings about markdown formatting.
f3f7056 Mir: Fixed crash if allocating memory for cursor failed.
ac8b939 Regenerated configure script with Mir changes.
83c6740 Fix API/ABI breakage in Mir 0.13/0.14.
89bd9d9 Windows: Just use WaitForSingleObjectEx() everywhere.
c21c74f Windows: let threads be named in the debugger.
8429765 stdlib: Restored previous qsort() implementation; the licensing is resolved.
8880143 x11: better fix for the previous commit's fullscreen vs maximized issue.
a7084c5 x11: Don't mess with fullscreen vs maximized window state on unmapped windows.
6bcb829 Android: Restored Philipp's joystick change, lost in the previous merge.
0e5bf80 Merge Android C89 fixes from Eric Wing.
11cdfa4 x11/wayland/mir: Make the dynamic loading macro salsa a little less messy.
b0620b4 Added support for the Mad Catz FightStick TE S+ PS3
a101b66 Added support for the Mad Catz FightStick TE S+ PS4
a8ba85b Added support for the Akishop Customs PS360+ v1.66 and MadCatz PC USB Wired Stick 8818
7c6c32e Added support for several Mad Catz arcade sticks
4d1a9e8 Allow using the game controller API with arcade sticks and other XInput devices
78c1a2d Android: Changed an internal joystick function to return count instead of id.
9cd0343 x11: Patched to compile with DEBUG_XEVENTS on C89 compilers.
ea9112a x11: Removed an assert.
7f46f9d Another attempt to fix Windows build.
507ba3f Patched to compile on Visual Studio.
0d2fc8c Replaced SDL_qsort with public domain code from PDCLib: http://pdclib.e43.eu/
c8de039 Windows: make sure SDL_TicksInit has been called before calling Sleep(ms) in SDL_Delay. This ensures the Windows system timer resolution is properly set before Sleep is called.
e1aeb68 PSP: Deactivated dynamic API.
0e6fb89 PSP: Added missing object for generic TLS to Makefile.
0ecd662 Fixed spaces in license comments.
6e7137e Android: C89 cleanup to avoid warnings/errors since the default gcc mode on Android is still pre-C99.
43af35f x11: Updated imKStoUCS.* to latest from x.org.
5393318 iOS: Implemented clipboard support.
414d85c David Carlier implemented SDL_GetBasePath() for OpenBSD
b7e22a7 Return the full number of events from SDL_PeepEvents() if NULL is passed in with SDL_PEEKEVENT
fe3874c x11: Fix AltGr generating an invalid keycode (bug #3244). Thanks Thomas!
96364c0 PSP: Removed inlined copy of SDL_CalculateAudioSpec()'s functionality.
97ea1e7 Android: Fixed ignoring a return value while handling motion events.
dfd007d Fixed creating fullscreen windows on Steam Link
438241a Expose the EGL display and window for Vivante SDL windows
208f468 Fixed compile warnings about type conversion.
e50b7e4 Android: Fixed finishing Activity on some devices if right mouse button pressed.
537dfe8 Fixed two typos in documentation.
141d9a1 Android: Added mouse initialization to reset state.
acfa3cd Android: Fixed a comment.
40eb999 Android: Added mapping of mouse forward button and mouse back button.
f7e7ae2 Removed dead code (caught by Clang's static analyzer).
6b6cb64 CMake: only set "-O3 -g" defaults if CMAKE_BUILD_TYPE wasn't set at all.
850815b Fixed buildbot's static analysis script to enable assertions.
a876872 x11: make last mouse coords sane upon window entry (thanks, Cengiz!).
6aa640c Fixed --enable-new-dtags check with cmake
cb0161a Use --enable-new-dtags to set RUNPATH rather than RPATH so that LD_LIBRARY_PATH is not overridden by the application.
9e04e93 Fixed NULL dereference on drop events with no window associated.
81d9973 Updated debian packaging files
3355087 Updated dynamic API table.
c93d43c SDL_RenderSetIntegerScale
f0cab18 Mac: Implemented SDL_GetDisplayDPI (thanks, Kirill!).
9f87b9b Fixed compile warnings about uninitialized variables in test library.
212422e Fixed outdated information in a README for iOS.
ec0694a Fixed doxygen warnings.
612da1e CMake: Turned off Mac OS X rpath warning kludge.
0049c0e Patched to compile on iOS.
a3c8456 Android: Fixed up drop events for new interface.
717c0aa Patched to compile.
2503e42 Use SDL's stdinc functions instead of C runtime calls.
3230d74 Added SDL_WINDOWEVENT_TAKE_FOCUS.
8c55bb4 Added SDL_WINDOWEVENT_HIT_TEST.
cdd64f2 Added SDL_SetWindowModalFor().
19373e6 Added SDL_SetWindowInputFocus().
2875d70 Added SDL_SetWindowOpacity() and SDL_GetWindowOpacity().
8afe3ca Added SDL_GetWindowBordersSize().
518ad5e x11: Put a matching window_group wmhint on every window created.
eb318de Added SDL_DROPBEGIN and SDL_DROPCOMPLETE events, plus window IDs for drops.
7344ea2 Added special window type flags.
b8b82c1 Added SDL_DROPTEXT event, for dragging and dropping string data.
6a3cfbf Added SDL_GetDisplayUsableBounds().
4aa26b8 x11: Optimize SDL_GetGlobalMouseState() a little.
2eef453 x11: window managers might mark windows as FULLSCREEN _and_ MAXIMIZED.
89d3488 x11: Workaround window managers that mark fullscreen windows as maximized.
9c45fcc x11: Let apps specify that video init should fail if XRandR is unavailable.
b7dd1e0 x11: _NET_WM_PID needs a long, not a pid_t, I think.
d76bd41 CMake: Let static libraries optionally be built with Position Independent Code.
7406930 CMake: use the old MACOSX_RPATH behavior (for now), silence the warning.
feae242 Updated comment: this is the correct way to do fullscreen on X11 now.
42fe733 Added a few FIXMEs.
914be5d Try to build with GCC's -Wdeclaration-after-statement.
63c0f22 Mac: allows apps to use OpenGL on a slower, integrated GPU.
8a7251c Patch to compile on C89 compilers.
efad83a x11: Support _NET_WM_USER_TIME and give _NET_ACTIVE_WINDOW a valid timestamp.
30911d3 CMake: Don't link directly to libGL on Unix.
4f8b05a CMake: Don't make a libSDL2.so symlink on Mac OS X (do .dylib instead).
60493ef Remove almost all instances of "volatile" keyword.
1f6b2a5 Added tag release-2.0.4 for changeset e12c38730512
REVERT: a901827 Cherry-pick commits containing Mir and Wayland bug fixes.
REVERT: 42906b1 Fix cross-compiling builds using X11 shared libraries.
REVERT: 8bf5499 For CI - attempt to fix broken multiarch support in older CMake. This should be a non-issue when we have migrated to CMake 3.2.3 (now under development in refactor-buildsystem branch).
REVERT: 05b669a Fix cross-compiling builds using readline shared library.
REVERT: bc7faa3 Reduce direct exposure to SDL headers as much as possible.
REVERT: 0202a35 Mark the SDL source code changes to comply with its license.
REVERT: 1c7c765 Fix memory leak in SDL library.
REVERT: bcfa945 Quick fix to suppress confusing output msgs from SDL's CMakeLists.txt. [ci skip]
REVERT: e674a2d Attempt to fix SDL OpenGLES auto-detection for Emscripten on Windows.
REVERT: 70d7782 Misc. bug fixes and refactoring in configuring SDL library build. - Fix the regex to get the shared library soname correctly. - Use the GCC_ATOMIC and CLOCK_GETTIME whenever they are available. - Reorganize the if-else block in the SDL CMakeLists.txt to prevent Unix-like platforms (e.g. Android) from entering the block meant for genuine Unix/Linux. - and more.
REVERT: 39b0d93 Disable the in_title_click data & focus_click_pending tests for SDL windows mouse warp, as it seems to lead into issues when regaining focus. Closes #1258.
REVERT: 9e4599a Applied patch to fix undefined reference error when compiling for Wayland on Linux.
REVERT: 8bb4927 Fix all the cross-compiling builds due to bugs in SDL CMakeLists.txt. Fix SDL library build on iOS platform.
REVERT: 8111296 Fix all the cross-compiling builds due to bugs in SDL CMakeLists.txt. Fix SDL library build on Web platform.
REVERT: c0843ff Fix all the cross-compiling builds due to bugs in SDL CMakeLists.txt. Fix SDL library build on Windows platform.
REVERT: 97b13a3 Set CMake minimum version to 3.2.3 for Windows platform. This is in preparation to use optional components feature of find_package() command for FindDirectX.cmake module (was FindDirect3D).
REVERT: c2b276b Refactor the CPU instruction extensions detection mechanism. Fix SDL build on the latest Raspbian Jessie release.
REVERT: c6e37b0 Fix all the cross-compiling builds due to bugs in SDL CMakeLists.txt. Fix SDL library build on Linux, Android, and RPI platforms.
REVERT: ad600cb Integrate SDL's original CMakeLists.txt into Urho3D build system. Close #1046. Close #1123. Close #1172.
REVERT: 6f8be44 Utilize new SDLActivity's get arguments feature.
REVERT: 707b945 Fixes code that is not compliant with the C89 standard when compiling with MSVC
REVERT: 8fa701d Reset SDL's internal in_title_click variable whenever a normal mouse up/down event is received. Fixes #1151.
REVERT: cd54cb4 Parameterise the asset directory indicator character(s) using env-var.
REVERT: 0fa6cb2 Add new JNI function to interface with AssetManager.list() method. Fix #855.
REVERT: ef31a17 Fix red screen issue on affected Android devices models, e.g. S3.
REVERT: 3256dac Clean up SDK include dirs. Refactor FindUrho3D CMake module. For Travis CI - add new steps to install the Urho3D SDK and to reference Urho3D library from the installed SDK.
REVERT: e2378cc Rename everything 'RASPI' to 'RPI'. [ci rebase]
REVERT: 8e18071 Return a writable documents directory on iOS. Contributed by att.
REVERT: 4c4bed8 Fix memory allocation for the resources directory on iOS.
REVERT: 0e42c9d Added functions to remove one recorded touch gesture, or all touch gestures.
REVERT: d102dab Replace Char event with TextInput event for CJK IME support.
REVERT: 20dbc31 Gesture recording/load/save support and gesture events. SDL fixes to gesture events. Closes #304.
REVERT: 84ebe6e Filesystem class also captures stderr when executing console command. Turn on SDL filesystem support for Linux platform.
REVERT: 32e704b Android fixes. Bump required Android SDK required for compiling to 12 due to SDL joystick code. Removed the activity finish request code, as SDLActivity should now cleanly wait for the native thread to exit.
REVERT: a0b7dec Merge SDL 2.0.3.
git-subtree-dir: Source/ThirdParty/SDL
git-subtree-split: fe37f87a653a620611f01f3588444b547211405d
2016-11-09 18:08:19 +03:00
|
|
|
#if defined(SDL_VIDEO_DRIVER_VIVANTE)
|
|
|
|
#include "SDL_egl.h"
|
|
|
|
#endif
|
|
|
|
|
2016-03-15 20:05:38 +03:00
|
|
|
/**
|
|
|
|
* These are the various supported windowing subsystems
|
|
|
|
*/
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
SDL_SYSWM_UNKNOWN,
|
|
|
|
SDL_SYSWM_WINDOWS,
|
|
|
|
SDL_SYSWM_X11,
|
|
|
|
SDL_SYSWM_DIRECTFB,
|
|
|
|
SDL_SYSWM_COCOA,
|
|
|
|
SDL_SYSWM_UIKIT,
|
|
|
|
SDL_SYSWM_WAYLAND,
|
|
|
|
SDL_SYSWM_MIR,
|
|
|
|
SDL_SYSWM_WINRT,
|
Squashed 'Source/ThirdParty/SDL/' changes from a901827..fe37f87
fe37f87 Integrate SDL's original CMakeLists.txt into Urho3D build system. This commit combines 19 previous commits made on top of SDL 2.0.4 release.
d8d5ea6 Define WINVER in SDL_windowsjoystick.c if not defined. Related to #1629.
cacbcec Fix memory leak in SDL library.
60d7ac2 Disable the in_title_click data & focus_click_pending tests for SDL windows mouse warp, as it seems to lead into issues when regaining focus. Closes #1258.
495d6da Utilize new SDLActivity's get arguments feature.
1277c8f Fixes code that is not compliant with the C89 standard when compiling with MSVC
60ba32f Reset SDL's internal in_title_click variable whenever a normal mouse up/down event is received. Fixes #1151.
91e81fa Parameterise the asset directory indicator character(s) using env-var.
6511eca Add new JNI function to interface with AssetManager.list() method. Fix #855.
b2a6c09 Fix red screen issue on affected Android devices models, e.g. S3.
0ff8347 Clean up SDK include dirs. Refactor FindUrho3D CMake module. For Travis CI - add new steps to install the Urho3D SDK and to reference Urho3D library from the installed SDK.
e5defe1 Return a writable documents directory on iOS. Contributed by att.
69215ae Fix memory allocation for the resources directory on iOS.
8bc2141 Added functions to remove one recorded touch gesture, or all touch gestures.
4a8cac5 Replace Char event with TextInput event for CJK IME support.
bb9249c Gesture recording/load/save support and gesture events. SDL fixes to gesture events. Closes #304.
43958df Android fixes. Bump required Android SDK required for compiling to 12 due to SDL joystick code. Removed the activity finish request code, as SDLActivity should now cleanly wait for the native thread to exit.
aa5a2ef Merge SDL 2.0.3.
5d7cfcc Fixed bug 3460 - docs/README-macosx.md: g++fat.sh should be g++-fat.sh in universal build command
100c615 Fixed bug 3461 - Implement TEXTINPUT events for Haiku
91af9fa Fixed crash on Mac OS X 10.10 and earlier
8bc6a7e Fixed bug 3369 - RaspberryPI ability to specify a Dispmanx layer
a416743 Worked around a crash on Mac OS X 10.10 and earlier, thanks to Eric Wasylishen.
e4105e7 Fixed bug 3444 - Android-TV: no more handling of back button on remote
aa631de Partial fix for bug 3092 - Statically link sdl2 with /MT for msvc
d40feeb Fixed bug 3456 - SDL_GameControllerOpen fails if the joystick subsystem isn't initialized
6eedda7 Fixed bug 3458 - x11: reset deadkeys in StartTextInput/StopTextInput
98f585e Linux: Added missing scancodes.
3ae8bbe Windows: Fixed not removing the always added hint callback on quit.
8704745 Linux: Removed not needed platform info from entry in controller database.
558617e Linux: Fixed compile warnings about unused variables.
cbe91a1 Android: Split long line in README.
66335e4 Removed unused constants in controllermap program.
d88450e emscripten: check if device pixel ratio has changed
420b160 Fixed compiler option warning for 64-bit builds on Visual Studio 2008
85e2c13 Fixed bug 3453 - First mouse button input after a drag and drop event is ignored
1090d1f Fixed bug 3452 - Getting unicode arguments for the main entry point on Windows
618b7a5 Fixed warning about redefining DECLSPEC
f700179 Fixed warning about missing field initializers in SDL_DBusContext Static variables are automatically initialized to zero.
90e4654 Fixed processing mouse and keyboard events in hatari, which uses the old SDLMain.m without creating an SDLApplication instance
df4c882 Fixed bug 2758 - Android issues with NDK r10c and API-21
52aad80 Fixed building with cmake when fcitx isn't installed
b4b3490 Fixed divide by zero if setting integer scale without setting logical width and height
bc850ed Fixed typo getting the drawable size
4e004d5 Fixed bug 3328 - Race condition in Wayland_VideoInit
f4c5462 Fixed bug 3451 - Raspberry Pi Raspbian SDL_assert triggered sometimes at RPI_WarpMouseGlobal
1e2589c Fixed black screen on Steam Link
307d753 Added support for the PS4 Slim controller, model CUH-ZCT2U
ed5b8e1 Fixed black screen on Steam Link
8cb0e92 Fixed bug 3355 - false "Invalid renderer" after creating an "opengles2" renderer.
3df3289 Added a note on how to allow non-root applications to increase their thread priority on Linux
f0a9a82 Work-around for a hang when USB devices are unplugged, contributed by James Zipperer
52fed49 Backed out change 92dc590a7116 which was: Fixed bug 3320 - SDL_windows_main.c defines both console application entry points With that change only the wmain() entry point was defined, and applications that linked with main() would no longer build.
6ffe2a5 Added note for David Carlier's work on OpenBSD
e7598ec Build SDL as universal binary
11f5755 Fixed build warning
ebf3f85 X11: Fixed compile warning about unused variable.
c514ae0 Removed empty statements in tests.
fdd0e41 Linux: Removed redundant function call.
0c68747 Fixed pointer signedness warning
b722466 Updated WhatsNew with 2.0.5 changes
97ec4f1 Fixed comment for new pixel formats
f91b4a6 Fixed bug 2923 - Add SDL_PIXELFORMAT_RGBA32 for byte-wise 32bit RGBA data
4e326f3 cmake: Now generates Wayland protocol source bits like the configure script.
faa1225 Fix invalid read from poor setlocale usage.
97db165 Fixed bug 3096 - SDL_BlitSurface with overlapping source and destination
5032214 Fixed a memory leak in function GL_RenderReadPixels
63bf89c Use SDL C runtime strlen()
42a861a alsa: more tapdancing to enumerate physical hardware devices.
3111f9a Made #if defined(X) consistent
9bc3025 Make sure we have iconv.h before building with it
1b0a9a8 Fixed compiling of three test programs with C++.
91423b4 Linux: Fixed mixed up scancodes.
de715c7 iOS: Updated demo README.
31a036e Fixed building and using fcitx IME support on Linux
1b032a0 Implemented SDL_GetHintBoolean() to make it easier to check boolean hints
98fbc3f SDL_HINT_WINDOWS_DISABLE_THREAD_NAMING
a2532cd ALSA_snd_pcm_drop() can hang on some systems (Steam Link) so don't use that when shutting down the ALSA audio driver.
de631d2 Fixed bug 2824 - Add Fcitx Input Method Support
d14ce58 Fixed bug 3438 - SDL_GameControllerEventWatcher: Log on event with value >= k_nMaxReverseEntries
701e14a Improve X11 key handling when XKB isn't available + add xvnc scancodes.
ee1f18b Additional patch to correct the number key assignments, and add assignments for keys that were missed
b07188e Fixed bug 3063 - Wayland: SDL resizes EGL surface to 0x0.
62d6856 Fixed bug 3061 - Selecting the dummy video driver on Mac OS X results in an error
a43ff2f Fixed bug 3043 - fix alsa configury and cmake checks
b579305 Fixed bug 3029 - software renderer cuts off edges when rotate-blitting with a multiple of 90 degrees
cccf665 Fixed bug 3022 - SDL_UnlockMutex(SDL_EventQ.lock) in SDL_PeepEvents can cause error when lock is null
b33fde0 Fixed bug 2983 - Update Android.readme to include Tegra Graphics Debugger compatibility tip
c55119c Converted README documentation to DOS text format
c54556c Fixed bug 2957 - De-reference rz_src without NULL check in SDLgfx_rotateSurface function
dd42a1c Fixed bug 2956 - De-reference videodata without NULL check in X11_DispatchEvent(_THIS) function
672afed Fixed bug 2952 - SDL_MixAudioFormat does not support audio format AUDIO_U16LSB/AUDIO_U16MSB
b0f8e0b Fixed bug 2924 - SDL_CreateRGBSurface[From] versions that take SDL_PIXELFORMAT enum
d53007a Fixed bug 2885 - SDL_stdinc.h doesn't need to include iconv.h
5939542 audio: Backed out the audio-thread detaching changes.
6e0f9b5 Fixed bug 2833 - Access Violation on SDL_PollEvent after init, delay and quit of joystick subsystem
d3e6678 Fixed bug 2832 - Inverted arrow-key navigation in MessageBox
c680df8 Fixed recentering triggers when the application doesn't have focus
0438241 Fixed bug 2823 - Release events for triggers receive wrong centered value
0d8bea4 Fixed bug 2808 - Fix SDL reporting wrong window size on resume
beedecb Applied Ubuntu patch bug_822210_fix_sdl2-config.cmake_whitespace.patch
ff255ca audio: Don't trust audio drivers to drain pending audio.
ae70bcd audio: better way to calculate buffer drain wait times.
764d036 audio: threading and device hang improvements.
11cf279 Some systems include both "default:" and "hw:" for the same usb device
c82d1cc fix for finding ALSA hotplug devices on Steam Link
069b980 Backed out a very unsafe change that was trying to prevent audio hang at quit.
c0ceb21 ensure SDL_AUDIODEVICEREMOVED gets sent when hotplug removes a device
09ecd06 fix deadlock on close device
0b40668 fix audio deadlock
7a98ee6 Modified the custom cursor test to be able to load BMP files as cursors
253cd06 Fixed bug 3021 - HapticOpenFromJoystick() problems
8914645 Fixed compiler warning about missing field initializers
705360d Fixed compiler warning - this should have been a const char pointer
3070ead Fixed potential buffer overflow in SDL_vsnprintf() (thanks, Taylor!).
7db0377 Fixed bug 2157 - Caps Lock key produces key down & key up events while key is still pressed.
321fdcc Fixed setting the version info in the shared library when using CMake
f0a55e2 Android: Fixed compile error.
820e748 Fixed wrong pixel format if reading pixels from OpenGL renderer.
c81f111 Added brackets to function names in header comments so that doxygen links them.
b84ac1f Fixed MinGW-w64 build warnings in SDL_render_d3d11.c
1515c1f Added SDL prefix to local IID constants
c5140ee WinRT: build fix in joystick code
bd4b1b3 Fixed bug 3437 - build error for WinRT/UWP .dlls, caused by fix for SDL bug 3336
8129eb5 Fix tabs -> spaces
7ee85d9 Fix bug 3436 - SDL_RaiseWindow not working on windows
94bec2e Fixed bug 3065 - Screen is flickering during closing on-screen keyboard on Android
6511fa6 Fixed bug 3078 - cmake: fix sdl2.m4 install location on cross hosts
f30f660 Fixed build on older Raspberry Pi environments
ece2bc8 Fixed warning and code style in SDL_evdev.c
8c37d6b Fixed build for X11
9f46868 Fixed windows build
b675802 Fixed build warnings and errors
179f2be Fixed bug 3107 OSX - Process events in SDLApplication to fix integration with CEF.
744356e Fixed bug 3116 - renderer->hidden in SDL_RenderCopy(Ex)
66c7d19 Fixed bug 3130 - Spacebar not responding
1b70faf Fix SDL not resizing window when Android screen resolution changes
bc36327 Fixed bug 3134 - CalculateXRandRRefreshRate() returns incorrect refresh rate due to floating point truncation.
0b2e713 Call setlocale + XSetModifiers before XOpenIM, Work around ibus+xim duplicate events.
680a6a1 Fixed bug 3138 - c_dfDIJoystick2 already defined in dinput8.lib
34ba394 Fixed 3149 - Mouse Pointer Raspberry Pi corrupt when moving over screen edges
f77ae11 Fixed bug 3157 - Rudimentary touchscreen support in SDL_evdev (supports Raspberry Pi)
7b44ab2 Fixed bug 3159 - SDL_blit_slow with BLENDING does not work
e3d8894 Fixed bug 3161 - SDL_WINDOWEVENT_EXPOSED event possible queue overflow
2803a1f Fixed bug 3165 - define numbers don't match types in Swift
894da7c Fixed bug 3169 - GLES2_CreateRenderer does not check SDL_GL_GetAttribute result, causing use of uninitialized data
7e0287b Fixed bug 3174 - SDL_SetRenderTarget clip rect
c14c8a1 Removed carriage returns from previous patch
70101d5 Fixed bug 3405 - Wrong default icon size on windows systems
5f44cde Fixed bug 3422 - OpenGL ES 1.1 renderer: SDL_UpdateTexture breaks later function calls (missing glDisable)
d5032ac Fix CMake setting an incorrect video backend on iOS
fd8e31b Fixed bug 3424 - SDL_GameController: Increase k_nMaxReverseEntries
6b80bec Fixed bug 3262 - Premake scripts are not compatible with "Genie" (premake fork)
13f3fd5 Fixed bug 3268 - CMAKE: ios fixes
e636f59 Fixed bug 3276 - build-scripts/showrev.sh prints the tip, which isn't useful if you're on a different -# branch, or just not sync'd to the tip.
7963feb Fixed bug 3301 - IBus support on Linux with CMake
8d7e011 Fixed bug 3305 - Fixed TextInput status when the keyboard was dismissed with the dismiss key on the iPad
94bfcde Force WM_PAINT events on window resize
c897935 Fixed bug 3318 - testime.c enhancement with GNU Unifont support
8ad2134 Fixed bug 3319 - Getting the POSIX out of testqsort.c
ec9642c Fixed bug 3320 - SDL_windows_main.c defines both console application entry points
574cc25 Fixed bug 3322 - Missing error checking in testaudioinfo and testaudiohotplug
8296b3f Fixed bug 3323 - SDL_LogOutput prints message twice on Windows when linked with libc
4eb41f3 Reset dead keys when the SDL window loses focus, so dead keys pressed in SDL applications don't affect text input into other applications.
e0095ad Fixed bug 3332 - Win32: reset deadkeys in StartTextInput/StopTextInput
a5e4a03 Fixed bug 3338 - console_wmain doesn't null terminate the argv array
a64ed63 Fixed bug 3345 - SDL_RenderClear inconsistency with ClipRect
adea337 Fixed bug 3347 - OpenGL ES renderer doesn't flip projection matrix for target textures
f1c567b Fixed bug 3349 - GLES2_RenderReadPixels doesn't use target texture format
225b99c Fixed bug 3350 - GL renderers don't need to flip rows after reading back pixels from the target texture
b8f4560 Fixed bug 3352 - Adding alpha mask support to SDL_SaveBMP_RW
e812846 Only use GCC pragmas when we're building with GCC
469d836 Fixed bug 3361 - Texture color modulation doesn't work with active NONE blend mode (opengl and opengles)
6c7cd4c Fixed bug 3362 - OpenGL renderer doesn't check if framebuffers are supported when creating target textures
02ae0da Fixed bug 3368 - SDL_Blit_Slow doesn't ignore alpha values in colorkey comparison
1d23b0f Fixed bug 3373 - OpenGL implementation differences of glDrawTexfOES
d71fc04 Fix running autogen.sh out-of-tree As done in GNOME's jhbuild building tool.
7f13262 We should be using a string constant for the strftime format string
d9190db Fix "format not a string literal" errors With GCC 6.1.
2948e51 Add gamecontrollerdb lines for SFC30 controller in various modes
c3ab42c Commit KEYCODE_SPACE as text input on Android
b26da9c Fixed bug 3336 - Failure to build with MinGW-w64
f4a55d3 Fixed bug 3388 - Fail to build src/thread/windows/SDL_systhread.c on MinGW 4.9.3
0d17b15 iOS: Removed unused constant in demo.
a604405 Fixed crash if allocating memory for mouse clicks failed.
77f3e90 windows: Removed hardcoded "1" for mouse clickthrough hint.
efa4b74 haiku: Patched to compile.
629e8b3 windows: fix borderless windows at desktop resolution (thanks, Evgeny!).
59a4809 x11: fixed incorrect SDL_GetWindowPosition() after resize (thanks, Jason!).
68abf12 Added SDL_SetWindowResizable(). (thanks, Ethan!)
d7c4e4a Fixed bug 3426 - Fixes for joystick related issues
82e8069 Fixed bug 3427 - Android accelerometer z-axis incorrect
295b859 Fixed bug 3429 - Update AM_PATH_SDL2() to also check for SDL2.framework
97b094e Added debug output for new window events
9961af2 Implemented SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH on X11
71e9b9f Added Windows support for SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH
5d60a58 Generalized the hint for whether the application gets a mouse event when clicking on the window to activate it, and is now named SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH. The behavior is defined to not receive the click event, and this hint allows you to override that.
273f71a When clicking on a window to give it focus, don't pass the mouse click to the application.
ee85553 Updated Linux notes on building with Mir and Wayland support.
7948587 Updated version to 2.0.5 in preparation for release
bd1799c Updated configure script.
c6bf0b8 iOS: Updated comment in demo.
ef9bde2 Enable SDL_LoadObject on iOS 8+ and tvOS.
d7b455f tvOS launch images are now properly supported.
448940e Update the code for the iOS demos to handle modern devices. Fixes bug #3337
d3410d3 Don't try to load a launch storyboard on tvOS (it doesn't use them).
1b8e2f3 iOS/tvOS: Try to load the launch screen as a storyboard. Xcode 8 compiles it as a storyboard instead of a nib.
2e80731 iOS/tvOS: Always send SDL_WINDOWEVENT_FOCUS_GAINED when a window is created on the main screen (fixes bug #3395).
053c6de Use OS-provided click counts on macOS and iOS for mouse press and release events.
9ec0713 Fix mouse wheel events on macOS 10.12 (thanks Eric Wasylishen!)
9a227e9 Mir: Add gamma support set/get. Still need one more function to complete the set
4f62256 Mir: Add fixme (waiting for a public api to be added)
e2434a9 [Mir] Move to the new MirDisplayConfig API
546554a Mac: Fixed markdown formatting in README.
42f3ecb Mac: Fixed whitespace around function return type.
0f1075b Fixed compiling of three test programs with C++.
7cbbd89 Android: Fixed two warnings about unused variables.
cac05aa Handle audio interruptions on iOS/tvOS. Fixes bugs 2569 and 2960.
0378b12 Xcode/mac: fix building standalone static and shared libraries.
597bf22 emscripten: get even more aggressive about audio device closing.
d2cb290 Recommended settings from Xcode 7.3.0
9b769a9 Fixed warning with Xcode 7.3.0
bc55781 Updated URL in a comment
3a2d9ce Added a new hint SDL_HINT_APPLE_TV_REMOTE_ALLOW_ROTATION.
5160ba4 tvOS: Add drop-file support
8d2e2aa Fixed set of libraries needed to build on Mac OS X
ed62fd2 Hopefully fixed the cmake build on Mac OS X
1b61eae Fixed building new coreaudio driver on Mac OS X
a98de9e CoreAudio iOS/tvOS: Use AVFoundation instead of AudioSession. Fixes audio on tvOS.
d3f9978 Fixed building for both iOS and tvOS on Xcode 8
a1e419f Fixed including OpenGL ES on iOS without any other SDL headers
2cbc2b9 Allow targeting tvOS
dcc80b6 Fixed spacing
dcc8498 Fixed accidental call to SDL_PrivateJoystickHat()
398a513 Initial Apple TV / tvOS support.
5935e90 Enable more compiler warnings in the Xcode projects (based on Xcode 8's suggestion), made some integer downcasts explicit.
f6a0ed8 Only prevent the default browser event handling when the specific event types aren't disabled by the user, patch contributed by Jonas Platte
7e29f2a Add mapping for media keys
a9c5c0a use Module.createContext for 2D rendering in emscripten
87fcf49 add some detail to fullscreen workaround comment; version 6
0666f33 only unset fullscreen flags if fullscreen failed
8d7af3e use screen resolution instead of canvas size
1f6196f Fix full screen mode in Firefox, which was broken by 9d4beb2
a45bf24 Support SDL_SetWindowTitle() via Module['setWindowTitle']()
16ce364 Remove unused variable warning from Emscripten build in Emscripten_HandleFullscreenChange().
1153627 Fix CMake CMAKE_REQUIRED_FLAGS handling to preserve existing CMake flags required by Emscripten toolchain.
467fa3d Unpress all keys on blur to avoid stuck keys
5220e32 Listen for blur and focus events on window instead of canvas
3bd567b Mouse events use CSS coordinates, so don't scale by pixel_ratio
fd627cf Accumulate subpixel mouse motion so motion is not lost.
5f08d5e Fix of mouse events in browser without pointer locks
16b7d18 optimize Emscripten_UpdateWindowFramebuffer
d642899 optimize a getValue
7c5a528 Include timers when using cmake (#29)
398f20c send mouse move on enter/leave
b1060d9 listen for mouse up on document (fixes mouseup outside canvas)
8b9e766 use SDL_SetMouseFocus
c35f8fe simplify fullscreen handling using new fullscreen_strategy api, patch contributed by Charlie Birks
fa82ab5 use css size for touch normalisation
372ca0e Reverted previous commit which breaks game controller input processing.
1019891 Suggestion from Apple: use kCFRunLoopCommonModes which does more complete event processing
c19a7e8 emscripten: special case to make SDL_ShowSimpleMessageBox() work.
450af28 emscripten-buildbot.sh: exit with an error if configure/make fail.
546eb95 mac: Patched to compile with CMake project.
f3c5574 coreaudio: Move from AudioUnits to AudioQueues.
2d2aede coreaudio: capture devices should let the system allocate the render buffer.
c89347a coreaudio: Replaced an int with an SDL_bool.
e41b4d3 coreaudio: Move some variable declarations to the top of the scope.
641bf4c Fixes building SDL on Ubuntu 16.04 with Mir headers installed
aa51d46 wayland: Add support for relative mouse mode, by Jonas Ådahl <jadahl@gmail.com>
44760bd wayland: Build own version of core protocol
1d3cd63 Wayland: Set "class" for each window we create This will be used by Wayland compositors to match the application ID and .desktop file to the SDL window(s).
fc0551d emscripten: Be more aggressive when closing audio capture devices.
68dcd6e WinRT: added an extra NULL pointer check for SDL_*ScreenSaver() backend code
474fc17 Mir: Add mouse grab support (requires mir 0.24)
63c0ba2 Fixed log message in audio capture test program.
aee365b Android: Removed unused internal function.
a3b6299 Android: Fixed misleading warning in log output (thanks, Sylvain!).
da705f6 Android: Fixed missing mouse motion events while button down (thanks, Sylvain!).
74cf2bf Fixed compiling if filesystem is disabled (thanks, Elias!).
2057ced WinRT: added SDL_*ScreenSaver() support; fixed crash when restoring app from screensaver
a1fec97 Fixed sorting and name of XBox wireless controller entry
144cbcb Merged Change: 3576099 from rel/streaming_client
cc18c09 WinRT: patched to compile
3caa2a8 cocoa: Fixed incorrect autorelease, noted by static analysis.
18a636e nacl: Patched to compile.
f8548a2 Patched to compile on Haiku.
b8e34b3 Merge audio capture work back into the mainline.
74eda00 Patched to compile.
8de6259 alsa: Implemented hotplug support, cleaned up device names.
1255ef8 ios: patched to compile.
3d116ad alsa: don't enumerate virtual devices, just physical hardware.
f98a06e Added SDL_PrivateJoystickAdded() and SDL_PrivateJoystickRemoved() Updated the removal code to iterate over all joystick add messages instead of just the first one.
b97a48e commit 1170112da3776fdb06425f62d57b63144c33dc51 Author: James Zipperer <james.zipperer@synapse.com> Date: Sun Aug 21 01:19:19 2016 -0700
7d1e740 Emscripten: Fixed crash if closing removed joystick (thanks, Sylvain!).
ea2a180 Android: Fixed crash if closing removed joystick (thanks, Sylvain!).
d5a6c71 WinRT: fixed bug where Win10 GameBar, when shown + hidden, might not restore a cursor's hidden state
7276d88 Added link in header comment.
7cc86e8 Emscripten: Fixed opening previously closed joystick.
e688740 Android: Fixed opening previously closed joystick (thanks, Sylvain!).
f098bb1 testaudiocapture: ask for way more output samples.
497af04 emscripten: send fake mouse events for touches, like other targets do.
f03b539 emscripten audio: check for an "undefined" object, remove some console.log().
fd200e0 audio: Cleaned up "extern AudioBootStrap" list.
7ab6161 audio: Renamed some internal driver symbols in various targets.
1ef00d5 android: implement audio capture support.
82140ec directsound: Implemented audio capture support.
6557ea0 windows: directsound should also map audio device GUIDs to proper names.
f2e2d65 audio: Patched to compile on C89 compilers.
da5e820 emscripten audio: fix timer on capture's silence callback.
938aa68 directsound: recalculate audiospec size before creating secondary buffer.
1a595df emscripten audio: Added audio capture support.
7ab0405 Added a FIXME.
7fd7e88 testaudiocapture: open capture device to same spec as output device.
d648625 audio: Only allocate fake_stream if we're using the standard audio threads.
6d4ba05 audio: simplifed check for internal callback.
cb8e57b [ OSX ] enables Xbox One S Guide (System Main Menu) button detection. the one possible impact is that since button identifiers on OSX are just their sequence in the HID report descriptor we might change the button order, and any existing/saved mappings may get their order changed.
bd3c62f dsp: Implemented audio capture support.
411ece1 winmm: Try to get full device names from the Windows Registry.
1096774 winmm: Added a FIXME for truncated device names.
007a2a8 winmm: Implemented audio capture support.
f9e9b84 Add Xbox One controller GUIDs to the XInput filter in the DirectInput joystick driver.
bcfb572 disk audio: Make default i/o delay match what device is meant to be running at.
602c102 disk audio: Implemented "capture" support, cleaned up some things.
532edaa testaudiocapture: use capture device buffer queueing, for better test coverage.
42e7791 audio: Implemented buffer queueing for capture devices (SDL_DequeueAudio()).
3614f6b testaudiocapture: don't use fullscreen for the window.
b441df5 audio: SDL_ClearQueuedAudio() should free everything but two packets.
ac07b3e nas: initial shot at audio capture support. Compiles, but not tested.
18b414b audio: Changed OnlyHasDefaultInputDevice to OnlyHasDefaultCaptureDevice.
fbb34c3 audio: changed some SDL_memset() calls to SDL_zero(), other minor corrections.
26a7583 audio: Removed internal SDL_audiomem.h and macros.
84e966c audio: Clean up some CloseDevice() interface details.
66f1d7b arts: backed out audio capture support.
6fb74f5 dummy audio: Patched to compile.
e0a678c Fixed two old identifiers in header comments.
f73dc1f PSP: Fixed memory leak if video init failed.
d932507 WinRT: Removed not needed SDL_zerop() after SDL_calloc().
9cb82d5 Added brackets to function names in header comments so that doxygen links them.
31fc31c dummy audio: Implemented dummy audio capture support. :)
e717a37 bsdaudio: first shot at audio capture support!
a0e627f bsdaudio: this appears to be using the wrong variable...?
db0c70b arts: Patched to (maybe) compile.
3ed7e95 arts: implemented audio capture support.
2883d9c alsa: capture devices don't need a mixbuf allocated.
047cd6c testaudiocapture: made test app interactive.
000e5b9 coreaudio: Implemented audio capture for iOS.
effa79c testaudiocapture: Make a simple green/red window when recording/playing.
7fc1368 alsa: Implemented audio capture support!
94da231 alsa: Cleaned up the 5.1 swizzle mess a little.
c715b1b audio: a little more robustness in the capture device's thread.
4245d51 pulseaudio: Implemented audio capture support!
7793384 audio: implemented higher level infrastructure for running capture devices.
ff06555 audio: Made some SDL_AudioDevice fields atomic.
9396cce testaudiocapture: Let specific devices be opened.
f38c23d BUGS.txt: Bugzilla supports SSL; changed link to https:// ...
0a21fed audio: changed some internal ints to be SDL_bools.
9f68a03 nacl: unlock audio thread mutex when done with it.
40504bd audio: Make SDL_AudioDevice::shutdown an atomic value.
d8cbd0f audio: Implemented capture support for Mac OS X CoreAudio.
d2873d0 audio: Initial bits to enable audio capture support.
cea5990 Fixed information in touch README and changed identifiers so doxygen links them.
a07ce85 Android: Updated a comment.
b8ba8f4 Android: Replaced deprecated AbsoluteLayout with RelativeLayout.
1d6a327 Linux: Fixed memory leak in haptic implementation (thanks, Martin!).
437ec0a Pandora: Fixed memory leak in video implementation.
2a8870a Pandora: Fixed compile warnings in video implementation (thanks, Bombo!).
3aafe64 ALSA: Fixed adding wrong status to error message (thanks, romain145!).
87009d4 Pandora: Fixed SDL version in debug output.
c69d353 Pandora: Updated SDL version in Makefile.
7cd228c Pandora: Fixed referring to no more existing atomic source file in Makefile.
082159f Updated comments in video implementations.
778b4fd Pandora: Fixed compile error in video implementation (thanks, Bombo!).
70603ac Android: Fixed androidbuild.sh not working on OS X (thanks, Steffen!).
9272534 Android: Fixed missing export of a JNI function (thanks, Andrii!).
9c5eea9 Android: Fixed compile warning about a missing prototype (thanks, Sylvain!).
8522dff Fixed compile warnings about evaluating undefined identifiers.
d1caaa4 Tests: Would be wise to compile this
5564d04 Tests: Somehow tabs leaked in...
962f8d8 Tests: Add a manual test for a custom cursor (Taken from the API docs)
bd6c926 Tests: Mir needs the window to swap at lease 1 frame for the cursor to show. So render in testwm2
e7823e8 MIR: Fix system cursors. Been broken since custom cursor support was added!
2e8c081 Android: Added new key codes from API 24.
ebcd2e8 iOS: Fix an OpenGL ES error when rotating the device if MSAA is used (thanks Cole Campbell!)
93d2998 Fixed three source comments in tests.
68ef914 Added a simple test case for SDL_sscanf() to tests.
38b769c Fixed freeing strings created by strdup() with SDL_free().
71e7b71 Mac: Fixed crash if SDL_GetDisplayDPI() got NULL pointers for output parameters.
fedb2f1 Fixed compile warnings in test library about formats strings not being literals.
87a3a9d Mac: Updated file name in README.
86b7c57 Fixed Bug 3147 - Windows: Crash when resizing Window since hg 333216331863
246255b Mac: Updated availability macro in build script.
8b84c36 MIR: Add better error handling for a failed connection
4e0798b MIR: Support relative mouse mode
20cebbb Windows: Fix other window positions/sizes being changed when exiting exclusive fullscreen (bug #3315, thanks Simon Hug!)
0d2837a Mac: Fix a crash when SDL is compiled with SDL_MAC_NO_SANDBOX enabled, by increasing the stack size of the mouse tap thread back to OS X' default of 512 KB.
e2f5a30 Removed Mac OS 10.5 support (bug #3137). Also fixed a warning about deprecated Carbon code when using SDL_audio (bug #3127, thanks Dominik!)
1746440 Updated documentation of SDL_IsScreenSaverEnabled().
977f1e0 Windows: Fixed missing error message if SDL_GetDisplayDPI() failed.
b82ec16 X11: Fixed typos in error messages and source comments.
024c8f7 X11: Fixed missing error message if SDL_GetDisplayDPI() failed.
65f3835 WinRT: workaround a possible Windows bug, whereby hiding cursors, disables mouse-moved events
2645c41 X11: Fixed SDL_GL_GetSwapInterval() returning -1 if interval is unknown.
087d1dc EGL: Fixed SDL_GL_GetSwapInterval() returning -1 on error.
a34752c Updated documentation of SDL_CreateWindow() and SDL_CreateWindowFrom().
4f43ef2 iOS: Added brackets to function names in README so that doxygen links them.
ace33ee Fixed missing error message if SDL_GetDisplayDPI() is unsupported.
13dddf1 Fixed crash in shape test program if memory allocation failed.
104af62 Fixed error return values in filesystem test program.
410827f WinRT: allow on-screen keyboard to be shown via SDL APIs, Win10/UWP only
62a5ddb Fixed memory leak in game controller test program.
788f608 Updated documentation of SDL_HINT_THREAD_STACK_SIZE in header file.
75f76ed Added missing links at documentation of SDL_FreeCursor() in header file.
de04db8 Cocoa mouse code: Replaced NSPointInRect with NSMouseInRect (thanks Eric Wasylishen!) Fixes bug #3312.
aaeb21b Mac: replaced a deprecated CGSetLocalEventsSuppressionInterval call that I missed in commit f0645cd8fd39
f2cc87e Android: Updated name of README file.
691f045 WinRT: another README tweak
638d7e1 WinRT: README tweaks
c5a78d3 Wayland: Removed not needed including and setting of errno.
dd03d06 Fixed markdown formatting in porting README for doxygen output.
085f0f8 Added missing error return in test program.
9c370af PSP: Fixed compile error.
41093fd WinRT: build/link fix
a894234 Patched to compile on Haiku...?
2724ca1 windows: created threads' stack sizes should be reserved, not committed.
591371d Patched to compile on various platforms.
2ef7fa3 threads: Move SDL's own thread creation to a new internal API.
db39f16 threads: Handle SDL_HINT_THREAD_STACK_SIZE at top level, implement elsewhere.
2001a71 WinRT: bug hack-fix - gamepad detection was failing on Xbox One
cdfd49c iOS: Fixed SDL_GL_CreateContext crashing instead of returning null when a GLES3 context is requested on iOS 6 and older.
f09f435 alsa: Make device enumeration robust against weird results with NULL strings.
9811c0e iOS: Also do the Dictation crash workaround before executing the animation callback.
bcb782f Add a new hint SDL_HINT_MAC_MOUSE_FOCUS_CLICKTHROUGH, which allows mouse click events to occur when clicking to focus a window in Mac OS X.
2a4cda5 iOS: Workaround for a crash after Dictation is used.
7f88cc0 iOS: Fixed compiling demos on C89 compilers.
c1eb482 PSP: Fixed returning success from unsupported SDL_RenderReadPixels().
1ed6926 PSP: Fixed returning success for unsupported SDL_SetTextureColorMod().
4c5cebd PSP: Fixed missing error message for unsupported SDL_CreateWindowFrom().
5ac3e2b Updated info about required Ubuntu version for Mir support in README.
1f2d4a9 Wayland: Fixed missing error message if creating a custom cursor failed.
ee01a42 Removed not needed SDL_WINDOW_SHOWN from chessboard test program.
cdebe3d iOS: Removed not needed SDL_WINDOW_SHOWN from rectangles demo.
fe02f94 iOS: Fixed keyboard demo ignoring quit requests and window closing.
7b39911 iOS: Replaced #import with #include in two demos.
ed8d693 iOS: Restored older version of rectangles demo.
35cd6f6 iOS: Updated SDL version in demo README.
8f72e07 Fixed comment in gesture source.
58d97ae Mac: avoid calling CGSetLocalEventsSuppressionInterval, it was deprecated in OS X 10.6.
a1c1b64 Windows CMake: don't try to link dxguid, it's unavailable when using Visual Studio's XP-compatible toolset.
e1e235c Wayland: Fixed crash if memory mapping failed while creating a custom cursor.
ee66d57 Wayland: Fixed storing a theme cursor which is never used in video data.
aff83da Pick up new display mode information after a mode change (Windows only right now).
7a159d4 Quick fix for qsort off-by-one error.
0765eef Emscripten: Deactivated custom cursor support because it created system cursors.
0337adf Wayland: Fixed drawing created cursors without transparency.
dc0f5b5 Wayland: Fixed showing created cursors incorrectly before the first redraw.
e8db21a WinRT: Removed dead code and fixed memory leak if allocation for driver failed.
7d41ef9 Fixed compiling IME test program with HAVE_SDL_TTF on C89 compilers.
76322d4 Removed unnecessary include statement in test program.
8fc2032 A simple test program for SDL_qsort().
1999ffe Another commit to test revision control.
780d219 Minor tweak to a README to test Mercurial server.
3e91a9b Fixed infinite timeout in SDL_WaitEventTimeout() - thanks Константин Гончарик
be57775 Allow mappings to be added before GameControllerInit
5024f42 alsa: Implemented basic device detection.
9061ebe x11: Fix a few more XMoveWindow() calls to adjust for border size.
dd10fff x11: Deal with window borders better.
587245b Raspberry: Fixed crash if memory allocation for cursor failed.
15d7854 Fixed compile warnings about unused variables in IME test program.
fb2a2ce Wayland: Fixed fault in event handling which might have caused a crash someday.
3cbc1d0 Wayland: Fixed crash if allocating memory for cursor failed.
db1d8e8 Replaced strlen() with SDL_strlen() in IME test program.
7374150 wayland: Add wl_proxy_marshal_constructor_versioned sym
fe40c7d Mir: Do not use opengl to find the valid pixel format if we dont use opengl
2679809 Mir: Replaced memcpy() with SDL_memcpy().
c31a05d Mir: Fixed comment at conditional compilation macro.
35ad322 Fixed doxygen warnings about markdown formatting.
f3f7056 Mir: Fixed crash if allocating memory for cursor failed.
ac8b939 Regenerated configure script with Mir changes.
83c6740 Fix API/ABI breakage in Mir 0.13/0.14.
89bd9d9 Windows: Just use WaitForSingleObjectEx() everywhere.
c21c74f Windows: let threads be named in the debugger.
8429765 stdlib: Restored previous qsort() implementation; the licensing is resolved.
8880143 x11: better fix for the previous commit's fullscreen vs maximized issue.
a7084c5 x11: Don't mess with fullscreen vs maximized window state on unmapped windows.
6bcb829 Android: Restored Philipp's joystick change, lost in the previous merge.
0e5bf80 Merge Android C89 fixes from Eric Wing.
11cdfa4 x11/wayland/mir: Make the dynamic loading macro salsa a little less messy.
b0620b4 Added support for the Mad Catz FightStick TE S+ PS3
a101b66 Added support for the Mad Catz FightStick TE S+ PS4
a8ba85b Added support for the Akishop Customs PS360+ v1.66 and MadCatz PC USB Wired Stick 8818
7c6c32e Added support for several Mad Catz arcade sticks
4d1a9e8 Allow using the game controller API with arcade sticks and other XInput devices
78c1a2d Android: Changed an internal joystick function to return count instead of id.
9cd0343 x11: Patched to compile with DEBUG_XEVENTS on C89 compilers.
ea9112a x11: Removed an assert.
7f46f9d Another attempt to fix Windows build.
507ba3f Patched to compile on Visual Studio.
0d2fc8c Replaced SDL_qsort with public domain code from PDCLib: http://pdclib.e43.eu/
c8de039 Windows: make sure SDL_TicksInit has been called before calling Sleep(ms) in SDL_Delay. This ensures the Windows system timer resolution is properly set before Sleep is called.
e1aeb68 PSP: Deactivated dynamic API.
0e6fb89 PSP: Added missing object for generic TLS to Makefile.
0ecd662 Fixed spaces in license comments.
6e7137e Android: C89 cleanup to avoid warnings/errors since the default gcc mode on Android is still pre-C99.
43af35f x11: Updated imKStoUCS.* to latest from x.org.
5393318 iOS: Implemented clipboard support.
414d85c David Carlier implemented SDL_GetBasePath() for OpenBSD
b7e22a7 Return the full number of events from SDL_PeepEvents() if NULL is passed in with SDL_PEEKEVENT
fe3874c x11: Fix AltGr generating an invalid keycode (bug #3244). Thanks Thomas!
96364c0 PSP: Removed inlined copy of SDL_CalculateAudioSpec()'s functionality.
97ea1e7 Android: Fixed ignoring a return value while handling motion events.
dfd007d Fixed creating fullscreen windows on Steam Link
438241a Expose the EGL display and window for Vivante SDL windows
208f468 Fixed compile warnings about type conversion.
e50b7e4 Android: Fixed finishing Activity on some devices if right mouse button pressed.
537dfe8 Fixed two typos in documentation.
141d9a1 Android: Added mouse initialization to reset state.
acfa3cd Android: Fixed a comment.
40eb999 Android: Added mapping of mouse forward button and mouse back button.
f7e7ae2 Removed dead code (caught by Clang's static analyzer).
6b6cb64 CMake: only set "-O3 -g" defaults if CMAKE_BUILD_TYPE wasn't set at all.
850815b Fixed buildbot's static analysis script to enable assertions.
a876872 x11: make last mouse coords sane upon window entry (thanks, Cengiz!).
6aa640c Fixed --enable-new-dtags check with cmake
cb0161a Use --enable-new-dtags to set RUNPATH rather than RPATH so that LD_LIBRARY_PATH is not overridden by the application.
9e04e93 Fixed NULL dereference on drop events with no window associated.
81d9973 Updated debian packaging files
3355087 Updated dynamic API table.
c93d43c SDL_RenderSetIntegerScale
f0cab18 Mac: Implemented SDL_GetDisplayDPI (thanks, Kirill!).
9f87b9b Fixed compile warnings about uninitialized variables in test library.
212422e Fixed outdated information in a README for iOS.
ec0694a Fixed doxygen warnings.
612da1e CMake: Turned off Mac OS X rpath warning kludge.
0049c0e Patched to compile on iOS.
a3c8456 Android: Fixed up drop events for new interface.
717c0aa Patched to compile.
2503e42 Use SDL's stdinc functions instead of C runtime calls.
3230d74 Added SDL_WINDOWEVENT_TAKE_FOCUS.
8c55bb4 Added SDL_WINDOWEVENT_HIT_TEST.
cdd64f2 Added SDL_SetWindowModalFor().
19373e6 Added SDL_SetWindowInputFocus().
2875d70 Added SDL_SetWindowOpacity() and SDL_GetWindowOpacity().
8afe3ca Added SDL_GetWindowBordersSize().
518ad5e x11: Put a matching window_group wmhint on every window created.
eb318de Added SDL_DROPBEGIN and SDL_DROPCOMPLETE events, plus window IDs for drops.
7344ea2 Added special window type flags.
b8b82c1 Added SDL_DROPTEXT event, for dragging and dropping string data.
6a3cfbf Added SDL_GetDisplayUsableBounds().
4aa26b8 x11: Optimize SDL_GetGlobalMouseState() a little.
2eef453 x11: window managers might mark windows as FULLSCREEN _and_ MAXIMIZED.
89d3488 x11: Workaround window managers that mark fullscreen windows as maximized.
9c45fcc x11: Let apps specify that video init should fail if XRandR is unavailable.
b7dd1e0 x11: _NET_WM_PID needs a long, not a pid_t, I think.
d76bd41 CMake: Let static libraries optionally be built with Position Independent Code.
7406930 CMake: use the old MACOSX_RPATH behavior (for now), silence the warning.
feae242 Updated comment: this is the correct way to do fullscreen on X11 now.
42fe733 Added a few FIXMEs.
914be5d Try to build with GCC's -Wdeclaration-after-statement.
63c0f22 Mac: allows apps to use OpenGL on a slower, integrated GPU.
8a7251c Patch to compile on C89 compilers.
efad83a x11: Support _NET_WM_USER_TIME and give _NET_ACTIVE_WINDOW a valid timestamp.
30911d3 CMake: Don't link directly to libGL on Unix.
4f8b05a CMake: Don't make a libSDL2.so symlink on Mac OS X (do .dylib instead).
60493ef Remove almost all instances of "volatile" keyword.
1f6b2a5 Added tag release-2.0.4 for changeset e12c38730512
REVERT: a901827 Cherry-pick commits containing Mir and Wayland bug fixes.
REVERT: 42906b1 Fix cross-compiling builds using X11 shared libraries.
REVERT: 8bf5499 For CI - attempt to fix broken multiarch support in older CMake. This should be a non-issue when we have migrated to CMake 3.2.3 (now under development in refactor-buildsystem branch).
REVERT: 05b669a Fix cross-compiling builds using readline shared library.
REVERT: bc7faa3 Reduce direct exposure to SDL headers as much as possible.
REVERT: 0202a35 Mark the SDL source code changes to comply with its license.
REVERT: 1c7c765 Fix memory leak in SDL library.
REVERT: bcfa945 Quick fix to suppress confusing output msgs from SDL's CMakeLists.txt. [ci skip]
REVERT: e674a2d Attempt to fix SDL OpenGLES auto-detection for Emscripten on Windows.
REVERT: 70d7782 Misc. bug fixes and refactoring in configuring SDL library build. - Fix the regex to get the shared library soname correctly. - Use the GCC_ATOMIC and CLOCK_GETTIME whenever they are available. - Reorganize the if-else block in the SDL CMakeLists.txt to prevent Unix-like platforms (e.g. Android) from entering the block meant for genuine Unix/Linux. - and more.
REVERT: 39b0d93 Disable the in_title_click data & focus_click_pending tests for SDL windows mouse warp, as it seems to lead into issues when regaining focus. Closes #1258.
REVERT: 9e4599a Applied patch to fix undefined reference error when compiling for Wayland on Linux.
REVERT: 8bb4927 Fix all the cross-compiling builds due to bugs in SDL CMakeLists.txt. Fix SDL library build on iOS platform.
REVERT: 8111296 Fix all the cross-compiling builds due to bugs in SDL CMakeLists.txt. Fix SDL library build on Web platform.
REVERT: c0843ff Fix all the cross-compiling builds due to bugs in SDL CMakeLists.txt. Fix SDL library build on Windows platform.
REVERT: 97b13a3 Set CMake minimum version to 3.2.3 for Windows platform. This is in preparation to use optional components feature of find_package() command for FindDirectX.cmake module (was FindDirect3D).
REVERT: c2b276b Refactor the CPU instruction extensions detection mechanism. Fix SDL build on the latest Raspbian Jessie release.
REVERT: c6e37b0 Fix all the cross-compiling builds due to bugs in SDL CMakeLists.txt. Fix SDL library build on Linux, Android, and RPI platforms.
REVERT: ad600cb Integrate SDL's original CMakeLists.txt into Urho3D build system. Close #1046. Close #1123. Close #1172.
REVERT: 6f8be44 Utilize new SDLActivity's get arguments feature.
REVERT: 707b945 Fixes code that is not compliant with the C89 standard when compiling with MSVC
REVERT: 8fa701d Reset SDL's internal in_title_click variable whenever a normal mouse up/down event is received. Fixes #1151.
REVERT: cd54cb4 Parameterise the asset directory indicator character(s) using env-var.
REVERT: 0fa6cb2 Add new JNI function to interface with AssetManager.list() method. Fix #855.
REVERT: ef31a17 Fix red screen issue on affected Android devices models, e.g. S3.
REVERT: 3256dac Clean up SDK include dirs. Refactor FindUrho3D CMake module. For Travis CI - add new steps to install the Urho3D SDK and to reference Urho3D library from the installed SDK.
REVERT: e2378cc Rename everything 'RASPI' to 'RPI'. [ci rebase]
REVERT: 8e18071 Return a writable documents directory on iOS. Contributed by att.
REVERT: 4c4bed8 Fix memory allocation for the resources directory on iOS.
REVERT: 0e42c9d Added functions to remove one recorded touch gesture, or all touch gestures.
REVERT: d102dab Replace Char event with TextInput event for CJK IME support.
REVERT: 20dbc31 Gesture recording/load/save support and gesture events. SDL fixes to gesture events. Closes #304.
REVERT: 84ebe6e Filesystem class also captures stderr when executing console command. Turn on SDL filesystem support for Linux platform.
REVERT: 32e704b Android fixes. Bump required Android SDK required for compiling to 12 due to SDL joystick code. Removed the activity finish request code, as SDLActivity should now cleanly wait for the native thread to exit.
REVERT: a0b7dec Merge SDL 2.0.3.
git-subtree-dir: Source/ThirdParty/SDL
git-subtree-split: fe37f87a653a620611f01f3588444b547211405d
2016-11-09 18:08:19 +03:00
|
|
|
SDL_SYSWM_ANDROID,
|
|
|
|
SDL_SYSWM_VIVANTE
|
2016-03-15 20:05:38 +03:00
|
|
|
} SDL_SYSWM_TYPE;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The custom event structure.
|
|
|
|
*/
|
|
|
|
struct SDL_SysWMmsg
|
|
|
|
{
|
|
|
|
SDL_version version;
|
|
|
|
SDL_SYSWM_TYPE subsystem;
|
|
|
|
union
|
|
|
|
{
|
|
|
|
#if defined(SDL_VIDEO_DRIVER_WINDOWS)
|
|
|
|
struct {
|
|
|
|
HWND hwnd; /**< The window for the message */
|
|
|
|
UINT msg; /**< The type of message */
|
|
|
|
WPARAM wParam; /**< WORD message parameter */
|
|
|
|
LPARAM lParam; /**< LONG message parameter */
|
|
|
|
} win;
|
|
|
|
#endif
|
|
|
|
#if defined(SDL_VIDEO_DRIVER_X11)
|
|
|
|
struct {
|
|
|
|
XEvent event;
|
|
|
|
} x11;
|
|
|
|
#endif
|
|
|
|
#if defined(SDL_VIDEO_DRIVER_DIRECTFB)
|
|
|
|
struct {
|
|
|
|
DFBEvent event;
|
|
|
|
} dfb;
|
|
|
|
#endif
|
|
|
|
#if defined(SDL_VIDEO_DRIVER_COCOA)
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
/* Latest version of Xcode clang complains about empty structs in C v. C++:
|
|
|
|
error: empty struct has size 0 in C, size 1 in C++
|
|
|
|
*/
|
|
|
|
int dummy;
|
|
|
|
/* No Cocoa window events yet */
|
|
|
|
} cocoa;
|
|
|
|
#endif
|
|
|
|
#if defined(SDL_VIDEO_DRIVER_UIKIT)
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
int dummy;
|
|
|
|
/* No UIKit window events yet */
|
|
|
|
} uikit;
|
Squashed 'Source/ThirdParty/SDL/' changes from a901827..fe37f87
fe37f87 Integrate SDL's original CMakeLists.txt into Urho3D build system. This commit combines 19 previous commits made on top of SDL 2.0.4 release.
d8d5ea6 Define WINVER in SDL_windowsjoystick.c if not defined. Related to #1629.
cacbcec Fix memory leak in SDL library.
60d7ac2 Disable the in_title_click data & focus_click_pending tests for SDL windows mouse warp, as it seems to lead into issues when regaining focus. Closes #1258.
495d6da Utilize new SDLActivity's get arguments feature.
1277c8f Fixes code that is not compliant with the C89 standard when compiling with MSVC
60ba32f Reset SDL's internal in_title_click variable whenever a normal mouse up/down event is received. Fixes #1151.
91e81fa Parameterise the asset directory indicator character(s) using env-var.
6511eca Add new JNI function to interface with AssetManager.list() method. Fix #855.
b2a6c09 Fix red screen issue on affected Android devices models, e.g. S3.
0ff8347 Clean up SDK include dirs. Refactor FindUrho3D CMake module. For Travis CI - add new steps to install the Urho3D SDK and to reference Urho3D library from the installed SDK.
e5defe1 Return a writable documents directory on iOS. Contributed by att.
69215ae Fix memory allocation for the resources directory on iOS.
8bc2141 Added functions to remove one recorded touch gesture, or all touch gestures.
4a8cac5 Replace Char event with TextInput event for CJK IME support.
bb9249c Gesture recording/load/save support and gesture events. SDL fixes to gesture events. Closes #304.
43958df Android fixes. Bump required Android SDK required for compiling to 12 due to SDL joystick code. Removed the activity finish request code, as SDLActivity should now cleanly wait for the native thread to exit.
aa5a2ef Merge SDL 2.0.3.
5d7cfcc Fixed bug 3460 - docs/README-macosx.md: g++fat.sh should be g++-fat.sh in universal build command
100c615 Fixed bug 3461 - Implement TEXTINPUT events for Haiku
91af9fa Fixed crash on Mac OS X 10.10 and earlier
8bc6a7e Fixed bug 3369 - RaspberryPI ability to specify a Dispmanx layer
a416743 Worked around a crash on Mac OS X 10.10 and earlier, thanks to Eric Wasylishen.
e4105e7 Fixed bug 3444 - Android-TV: no more handling of back button on remote
aa631de Partial fix for bug 3092 - Statically link sdl2 with /MT for msvc
d40feeb Fixed bug 3456 - SDL_GameControllerOpen fails if the joystick subsystem isn't initialized
6eedda7 Fixed bug 3458 - x11: reset deadkeys in StartTextInput/StopTextInput
98f585e Linux: Added missing scancodes.
3ae8bbe Windows: Fixed not removing the always added hint callback on quit.
8704745 Linux: Removed not needed platform info from entry in controller database.
558617e Linux: Fixed compile warnings about unused variables.
cbe91a1 Android: Split long line in README.
66335e4 Removed unused constants in controllermap program.
d88450e emscripten: check if device pixel ratio has changed
420b160 Fixed compiler option warning for 64-bit builds on Visual Studio 2008
85e2c13 Fixed bug 3453 - First mouse button input after a drag and drop event is ignored
1090d1f Fixed bug 3452 - Getting unicode arguments for the main entry point on Windows
618b7a5 Fixed warning about redefining DECLSPEC
f700179 Fixed warning about missing field initializers in SDL_DBusContext Static variables are automatically initialized to zero.
90e4654 Fixed processing mouse and keyboard events in hatari, which uses the old SDLMain.m without creating an SDLApplication instance
df4c882 Fixed bug 2758 - Android issues with NDK r10c and API-21
52aad80 Fixed building with cmake when fcitx isn't installed
b4b3490 Fixed divide by zero if setting integer scale without setting logical width and height
bc850ed Fixed typo getting the drawable size
4e004d5 Fixed bug 3328 - Race condition in Wayland_VideoInit
f4c5462 Fixed bug 3451 - Raspberry Pi Raspbian SDL_assert triggered sometimes at RPI_WarpMouseGlobal
1e2589c Fixed black screen on Steam Link
307d753 Added support for the PS4 Slim controller, model CUH-ZCT2U
ed5b8e1 Fixed black screen on Steam Link
8cb0e92 Fixed bug 3355 - false "Invalid renderer" after creating an "opengles2" renderer.
3df3289 Added a note on how to allow non-root applications to increase their thread priority on Linux
f0a9a82 Work-around for a hang when USB devices are unplugged, contributed by James Zipperer
52fed49 Backed out change 92dc590a7116 which was: Fixed bug 3320 - SDL_windows_main.c defines both console application entry points With that change only the wmain() entry point was defined, and applications that linked with main() would no longer build.
6ffe2a5 Added note for David Carlier's work on OpenBSD
e7598ec Build SDL as universal binary
11f5755 Fixed build warning
ebf3f85 X11: Fixed compile warning about unused variable.
c514ae0 Removed empty statements in tests.
fdd0e41 Linux: Removed redundant function call.
0c68747 Fixed pointer signedness warning
b722466 Updated WhatsNew with 2.0.5 changes
97ec4f1 Fixed comment for new pixel formats
f91b4a6 Fixed bug 2923 - Add SDL_PIXELFORMAT_RGBA32 for byte-wise 32bit RGBA data
4e326f3 cmake: Now generates Wayland protocol source bits like the configure script.
faa1225 Fix invalid read from poor setlocale usage.
97db165 Fixed bug 3096 - SDL_BlitSurface with overlapping source and destination
5032214 Fixed a memory leak in function GL_RenderReadPixels
63bf89c Use SDL C runtime strlen()
42a861a alsa: more tapdancing to enumerate physical hardware devices.
3111f9a Made #if defined(X) consistent
9bc3025 Make sure we have iconv.h before building with it
1b0a9a8 Fixed compiling of three test programs with C++.
91423b4 Linux: Fixed mixed up scancodes.
de715c7 iOS: Updated demo README.
31a036e Fixed building and using fcitx IME support on Linux
1b032a0 Implemented SDL_GetHintBoolean() to make it easier to check boolean hints
98fbc3f SDL_HINT_WINDOWS_DISABLE_THREAD_NAMING
a2532cd ALSA_snd_pcm_drop() can hang on some systems (Steam Link) so don't use that when shutting down the ALSA audio driver.
de631d2 Fixed bug 2824 - Add Fcitx Input Method Support
d14ce58 Fixed bug 3438 - SDL_GameControllerEventWatcher: Log on event with value >= k_nMaxReverseEntries
701e14a Improve X11 key handling when XKB isn't available + add xvnc scancodes.
ee1f18b Additional patch to correct the number key assignments, and add assignments for keys that were missed
b07188e Fixed bug 3063 - Wayland: SDL resizes EGL surface to 0x0.
62d6856 Fixed bug 3061 - Selecting the dummy video driver on Mac OS X results in an error
a43ff2f Fixed bug 3043 - fix alsa configury and cmake checks
b579305 Fixed bug 3029 - software renderer cuts off edges when rotate-blitting with a multiple of 90 degrees
cccf665 Fixed bug 3022 - SDL_UnlockMutex(SDL_EventQ.lock) in SDL_PeepEvents can cause error when lock is null
b33fde0 Fixed bug 2983 - Update Android.readme to include Tegra Graphics Debugger compatibility tip
c55119c Converted README documentation to DOS text format
c54556c Fixed bug 2957 - De-reference rz_src without NULL check in SDLgfx_rotateSurface function
dd42a1c Fixed bug 2956 - De-reference videodata without NULL check in X11_DispatchEvent(_THIS) function
672afed Fixed bug 2952 - SDL_MixAudioFormat does not support audio format AUDIO_U16LSB/AUDIO_U16MSB
b0f8e0b Fixed bug 2924 - SDL_CreateRGBSurface[From] versions that take SDL_PIXELFORMAT enum
d53007a Fixed bug 2885 - SDL_stdinc.h doesn't need to include iconv.h
5939542 audio: Backed out the audio-thread detaching changes.
6e0f9b5 Fixed bug 2833 - Access Violation on SDL_PollEvent after init, delay and quit of joystick subsystem
d3e6678 Fixed bug 2832 - Inverted arrow-key navigation in MessageBox
c680df8 Fixed recentering triggers when the application doesn't have focus
0438241 Fixed bug 2823 - Release events for triggers receive wrong centered value
0d8bea4 Fixed bug 2808 - Fix SDL reporting wrong window size on resume
beedecb Applied Ubuntu patch bug_822210_fix_sdl2-config.cmake_whitespace.patch
ff255ca audio: Don't trust audio drivers to drain pending audio.
ae70bcd audio: better way to calculate buffer drain wait times.
764d036 audio: threading and device hang improvements.
11cf279 Some systems include both "default:" and "hw:" for the same usb device
c82d1cc fix for finding ALSA hotplug devices on Steam Link
069b980 Backed out a very unsafe change that was trying to prevent audio hang at quit.
c0ceb21 ensure SDL_AUDIODEVICEREMOVED gets sent when hotplug removes a device
09ecd06 fix deadlock on close device
0b40668 fix audio deadlock
7a98ee6 Modified the custom cursor test to be able to load BMP files as cursors
253cd06 Fixed bug 3021 - HapticOpenFromJoystick() problems
8914645 Fixed compiler warning about missing field initializers
705360d Fixed compiler warning - this should have been a const char pointer
3070ead Fixed potential buffer overflow in SDL_vsnprintf() (thanks, Taylor!).
7db0377 Fixed bug 2157 - Caps Lock key produces key down & key up events while key is still pressed.
321fdcc Fixed setting the version info in the shared library when using CMake
f0a55e2 Android: Fixed compile error.
820e748 Fixed wrong pixel format if reading pixels from OpenGL renderer.
c81f111 Added brackets to function names in header comments so that doxygen links them.
b84ac1f Fixed MinGW-w64 build warnings in SDL_render_d3d11.c
1515c1f Added SDL prefix to local IID constants
c5140ee WinRT: build fix in joystick code
bd4b1b3 Fixed bug 3437 - build error for WinRT/UWP .dlls, caused by fix for SDL bug 3336
8129eb5 Fix tabs -> spaces
7ee85d9 Fix bug 3436 - SDL_RaiseWindow not working on windows
94bec2e Fixed bug 3065 - Screen is flickering during closing on-screen keyboard on Android
6511fa6 Fixed bug 3078 - cmake: fix sdl2.m4 install location on cross hosts
f30f660 Fixed build on older Raspberry Pi environments
ece2bc8 Fixed warning and code style in SDL_evdev.c
8c37d6b Fixed build for X11
9f46868 Fixed windows build
b675802 Fixed build warnings and errors
179f2be Fixed bug 3107 OSX - Process events in SDLApplication to fix integration with CEF.
744356e Fixed bug 3116 - renderer->hidden in SDL_RenderCopy(Ex)
66c7d19 Fixed bug 3130 - Spacebar not responding
1b70faf Fix SDL not resizing window when Android screen resolution changes
bc36327 Fixed bug 3134 - CalculateXRandRRefreshRate() returns incorrect refresh rate due to floating point truncation.
0b2e713 Call setlocale + XSetModifiers before XOpenIM, Work around ibus+xim duplicate events.
680a6a1 Fixed bug 3138 - c_dfDIJoystick2 already defined in dinput8.lib
34ba394 Fixed 3149 - Mouse Pointer Raspberry Pi corrupt when moving over screen edges
f77ae11 Fixed bug 3157 - Rudimentary touchscreen support in SDL_evdev (supports Raspberry Pi)
7b44ab2 Fixed bug 3159 - SDL_blit_slow with BLENDING does not work
e3d8894 Fixed bug 3161 - SDL_WINDOWEVENT_EXPOSED event possible queue overflow
2803a1f Fixed bug 3165 - define numbers don't match types in Swift
894da7c Fixed bug 3169 - GLES2_CreateRenderer does not check SDL_GL_GetAttribute result, causing use of uninitialized data
7e0287b Fixed bug 3174 - SDL_SetRenderTarget clip rect
c14c8a1 Removed carriage returns from previous patch
70101d5 Fixed bug 3405 - Wrong default icon size on windows systems
5f44cde Fixed bug 3422 - OpenGL ES 1.1 renderer: SDL_UpdateTexture breaks later function calls (missing glDisable)
d5032ac Fix CMake setting an incorrect video backend on iOS
fd8e31b Fixed bug 3424 - SDL_GameController: Increase k_nMaxReverseEntries
6b80bec Fixed bug 3262 - Premake scripts are not compatible with "Genie" (premake fork)
13f3fd5 Fixed bug 3268 - CMAKE: ios fixes
e636f59 Fixed bug 3276 - build-scripts/showrev.sh prints the tip, which isn't useful if you're on a different -# branch, or just not sync'd to the tip.
7963feb Fixed bug 3301 - IBus support on Linux with CMake
8d7e011 Fixed bug 3305 - Fixed TextInput status when the keyboard was dismissed with the dismiss key on the iPad
94bfcde Force WM_PAINT events on window resize
c897935 Fixed bug 3318 - testime.c enhancement with GNU Unifont support
8ad2134 Fixed bug 3319 - Getting the POSIX out of testqsort.c
ec9642c Fixed bug 3320 - SDL_windows_main.c defines both console application entry points
574cc25 Fixed bug 3322 - Missing error checking in testaudioinfo and testaudiohotplug
8296b3f Fixed bug 3323 - SDL_LogOutput prints message twice on Windows when linked with libc
4eb41f3 Reset dead keys when the SDL window loses focus, so dead keys pressed in SDL applications don't affect text input into other applications.
e0095ad Fixed bug 3332 - Win32: reset deadkeys in StartTextInput/StopTextInput
a5e4a03 Fixed bug 3338 - console_wmain doesn't null terminate the argv array
a64ed63 Fixed bug 3345 - SDL_RenderClear inconsistency with ClipRect
adea337 Fixed bug 3347 - OpenGL ES renderer doesn't flip projection matrix for target textures
f1c567b Fixed bug 3349 - GLES2_RenderReadPixels doesn't use target texture format
225b99c Fixed bug 3350 - GL renderers don't need to flip rows after reading back pixels from the target texture
b8f4560 Fixed bug 3352 - Adding alpha mask support to SDL_SaveBMP_RW
e812846 Only use GCC pragmas when we're building with GCC
469d836 Fixed bug 3361 - Texture color modulation doesn't work with active NONE blend mode (opengl and opengles)
6c7cd4c Fixed bug 3362 - OpenGL renderer doesn't check if framebuffers are supported when creating target textures
02ae0da Fixed bug 3368 - SDL_Blit_Slow doesn't ignore alpha values in colorkey comparison
1d23b0f Fixed bug 3373 - OpenGL implementation differences of glDrawTexfOES
d71fc04 Fix running autogen.sh out-of-tree As done in GNOME's jhbuild building tool.
7f13262 We should be using a string constant for the strftime format string
d9190db Fix "format not a string literal" errors With GCC 6.1.
2948e51 Add gamecontrollerdb lines for SFC30 controller in various modes
c3ab42c Commit KEYCODE_SPACE as text input on Android
b26da9c Fixed bug 3336 - Failure to build with MinGW-w64
f4a55d3 Fixed bug 3388 - Fail to build src/thread/windows/SDL_systhread.c on MinGW 4.9.3
0d17b15 iOS: Removed unused constant in demo.
a604405 Fixed crash if allocating memory for mouse clicks failed.
77f3e90 windows: Removed hardcoded "1" for mouse clickthrough hint.
efa4b74 haiku: Patched to compile.
629e8b3 windows: fix borderless windows at desktop resolution (thanks, Evgeny!).
59a4809 x11: fixed incorrect SDL_GetWindowPosition() after resize (thanks, Jason!).
68abf12 Added SDL_SetWindowResizable(). (thanks, Ethan!)
d7c4e4a Fixed bug 3426 - Fixes for joystick related issues
82e8069 Fixed bug 3427 - Android accelerometer z-axis incorrect
295b859 Fixed bug 3429 - Update AM_PATH_SDL2() to also check for SDL2.framework
97b094e Added debug output for new window events
9961af2 Implemented SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH on X11
71e9b9f Added Windows support for SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH
5d60a58 Generalized the hint for whether the application gets a mouse event when clicking on the window to activate it, and is now named SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH. The behavior is defined to not receive the click event, and this hint allows you to override that.
273f71a When clicking on a window to give it focus, don't pass the mouse click to the application.
ee85553 Updated Linux notes on building with Mir and Wayland support.
7948587 Updated version to 2.0.5 in preparation for release
bd1799c Updated configure script.
c6bf0b8 iOS: Updated comment in demo.
ef9bde2 Enable SDL_LoadObject on iOS 8+ and tvOS.
d7b455f tvOS launch images are now properly supported.
448940e Update the code for the iOS demos to handle modern devices. Fixes bug #3337
d3410d3 Don't try to load a launch storyboard on tvOS (it doesn't use them).
1b8e2f3 iOS/tvOS: Try to load the launch screen as a storyboard. Xcode 8 compiles it as a storyboard instead of a nib.
2e80731 iOS/tvOS: Always send SDL_WINDOWEVENT_FOCUS_GAINED when a window is created on the main screen (fixes bug #3395).
053c6de Use OS-provided click counts on macOS and iOS for mouse press and release events.
9ec0713 Fix mouse wheel events on macOS 10.12 (thanks Eric Wasylishen!)
9a227e9 Mir: Add gamma support set/get. Still need one more function to complete the set
4f62256 Mir: Add fixme (waiting for a public api to be added)
e2434a9 [Mir] Move to the new MirDisplayConfig API
546554a Mac: Fixed markdown formatting in README.
42f3ecb Mac: Fixed whitespace around function return type.
0f1075b Fixed compiling of three test programs with C++.
7cbbd89 Android: Fixed two warnings about unused variables.
cac05aa Handle audio interruptions on iOS/tvOS. Fixes bugs 2569 and 2960.
0378b12 Xcode/mac: fix building standalone static and shared libraries.
597bf22 emscripten: get even more aggressive about audio device closing.
d2cb290 Recommended settings from Xcode 7.3.0
9b769a9 Fixed warning with Xcode 7.3.0
bc55781 Updated URL in a comment
3a2d9ce Added a new hint SDL_HINT_APPLE_TV_REMOTE_ALLOW_ROTATION.
5160ba4 tvOS: Add drop-file support
8d2e2aa Fixed set of libraries needed to build on Mac OS X
ed62fd2 Hopefully fixed the cmake build on Mac OS X
1b61eae Fixed building new coreaudio driver on Mac OS X
a98de9e CoreAudio iOS/tvOS: Use AVFoundation instead of AudioSession. Fixes audio on tvOS.
d3f9978 Fixed building for both iOS and tvOS on Xcode 8
a1e419f Fixed including OpenGL ES on iOS without any other SDL headers
2cbc2b9 Allow targeting tvOS
dcc80b6 Fixed spacing
dcc8498 Fixed accidental call to SDL_PrivateJoystickHat()
398a513 Initial Apple TV / tvOS support.
5935e90 Enable more compiler warnings in the Xcode projects (based on Xcode 8's suggestion), made some integer downcasts explicit.
f6a0ed8 Only prevent the default browser event handling when the specific event types aren't disabled by the user, patch contributed by Jonas Platte
7e29f2a Add mapping for media keys
a9c5c0a use Module.createContext for 2D rendering in emscripten
87fcf49 add some detail to fullscreen workaround comment; version 6
0666f33 only unset fullscreen flags if fullscreen failed
8d7af3e use screen resolution instead of canvas size
1f6196f Fix full screen mode in Firefox, which was broken by 9d4beb2
a45bf24 Support SDL_SetWindowTitle() via Module['setWindowTitle']()
16ce364 Remove unused variable warning from Emscripten build in Emscripten_HandleFullscreenChange().
1153627 Fix CMake CMAKE_REQUIRED_FLAGS handling to preserve existing CMake flags required by Emscripten toolchain.
467fa3d Unpress all keys on blur to avoid stuck keys
5220e32 Listen for blur and focus events on window instead of canvas
3bd567b Mouse events use CSS coordinates, so don't scale by pixel_ratio
fd627cf Accumulate subpixel mouse motion so motion is not lost.
5f08d5e Fix of mouse events in browser without pointer locks
16b7d18 optimize Emscripten_UpdateWindowFramebuffer
d642899 optimize a getValue
7c5a528 Include timers when using cmake (#29)
398f20c send mouse move on enter/leave
b1060d9 listen for mouse up on document (fixes mouseup outside canvas)
8b9e766 use SDL_SetMouseFocus
c35f8fe simplify fullscreen handling using new fullscreen_strategy api, patch contributed by Charlie Birks
fa82ab5 use css size for touch normalisation
372ca0e Reverted previous commit which breaks game controller input processing.
1019891 Suggestion from Apple: use kCFRunLoopCommonModes which does more complete event processing
c19a7e8 emscripten: special case to make SDL_ShowSimpleMessageBox() work.
450af28 emscripten-buildbot.sh: exit with an error if configure/make fail.
546eb95 mac: Patched to compile with CMake project.
f3c5574 coreaudio: Move from AudioUnits to AudioQueues.
2d2aede coreaudio: capture devices should let the system allocate the render buffer.
c89347a coreaudio: Replaced an int with an SDL_bool.
e41b4d3 coreaudio: Move some variable declarations to the top of the scope.
641bf4c Fixes building SDL on Ubuntu 16.04 with Mir headers installed
aa51d46 wayland: Add support for relative mouse mode, by Jonas Ådahl <jadahl@gmail.com>
44760bd wayland: Build own version of core protocol
1d3cd63 Wayland: Set "class" for each window we create This will be used by Wayland compositors to match the application ID and .desktop file to the SDL window(s).
fc0551d emscripten: Be more aggressive when closing audio capture devices.
68dcd6e WinRT: added an extra NULL pointer check for SDL_*ScreenSaver() backend code
474fc17 Mir: Add mouse grab support (requires mir 0.24)
63c0ba2 Fixed log message in audio capture test program.
aee365b Android: Removed unused internal function.
a3b6299 Android: Fixed misleading warning in log output (thanks, Sylvain!).
da705f6 Android: Fixed missing mouse motion events while button down (thanks, Sylvain!).
74cf2bf Fixed compiling if filesystem is disabled (thanks, Elias!).
2057ced WinRT: added SDL_*ScreenSaver() support; fixed crash when restoring app from screensaver
a1fec97 Fixed sorting and name of XBox wireless controller entry
144cbcb Merged Change: 3576099 from rel/streaming_client
cc18c09 WinRT: patched to compile
3caa2a8 cocoa: Fixed incorrect autorelease, noted by static analysis.
18a636e nacl: Patched to compile.
f8548a2 Patched to compile on Haiku.
b8e34b3 Merge audio capture work back into the mainline.
74eda00 Patched to compile.
8de6259 alsa: Implemented hotplug support, cleaned up device names.
1255ef8 ios: patched to compile.
3d116ad alsa: don't enumerate virtual devices, just physical hardware.
f98a06e Added SDL_PrivateJoystickAdded() and SDL_PrivateJoystickRemoved() Updated the removal code to iterate over all joystick add messages instead of just the first one.
b97a48e commit 1170112da3776fdb06425f62d57b63144c33dc51 Author: James Zipperer <james.zipperer@synapse.com> Date: Sun Aug 21 01:19:19 2016 -0700
7d1e740 Emscripten: Fixed crash if closing removed joystick (thanks, Sylvain!).
ea2a180 Android: Fixed crash if closing removed joystick (thanks, Sylvain!).
d5a6c71 WinRT: fixed bug where Win10 GameBar, when shown + hidden, might not restore a cursor's hidden state
7276d88 Added link in header comment.
7cc86e8 Emscripten: Fixed opening previously closed joystick.
e688740 Android: Fixed opening previously closed joystick (thanks, Sylvain!).
f098bb1 testaudiocapture: ask for way more output samples.
497af04 emscripten: send fake mouse events for touches, like other targets do.
f03b539 emscripten audio: check for an "undefined" object, remove some console.log().
fd200e0 audio: Cleaned up "extern AudioBootStrap" list.
7ab6161 audio: Renamed some internal driver symbols in various targets.
1ef00d5 android: implement audio capture support.
82140ec directsound: Implemented audio capture support.
6557ea0 windows: directsound should also map audio device GUIDs to proper names.
f2e2d65 audio: Patched to compile on C89 compilers.
da5e820 emscripten audio: fix timer on capture's silence callback.
938aa68 directsound: recalculate audiospec size before creating secondary buffer.
1a595df emscripten audio: Added audio capture support.
7ab0405 Added a FIXME.
7fd7e88 testaudiocapture: open capture device to same spec as output device.
d648625 audio: Only allocate fake_stream if we're using the standard audio threads.
6d4ba05 audio: simplifed check for internal callback.
cb8e57b [ OSX ] enables Xbox One S Guide (System Main Menu) button detection. the one possible impact is that since button identifiers on OSX are just their sequence in the HID report descriptor we might change the button order, and any existing/saved mappings may get their order changed.
bd3c62f dsp: Implemented audio capture support.
411ece1 winmm: Try to get full device names from the Windows Registry.
1096774 winmm: Added a FIXME for truncated device names.
007a2a8 winmm: Implemented audio capture support.
f9e9b84 Add Xbox One controller GUIDs to the XInput filter in the DirectInput joystick driver.
bcfb572 disk audio: Make default i/o delay match what device is meant to be running at.
602c102 disk audio: Implemented "capture" support, cleaned up some things.
532edaa testaudiocapture: use capture device buffer queueing, for better test coverage.
42e7791 audio: Implemented buffer queueing for capture devices (SDL_DequeueAudio()).
3614f6b testaudiocapture: don't use fullscreen for the window.
b441df5 audio: SDL_ClearQueuedAudio() should free everything but two packets.
ac07b3e nas: initial shot at audio capture support. Compiles, but not tested.
18b414b audio: Changed OnlyHasDefaultInputDevice to OnlyHasDefaultCaptureDevice.
fbb34c3 audio: changed some SDL_memset() calls to SDL_zero(), other minor corrections.
26a7583 audio: Removed internal SDL_audiomem.h and macros.
84e966c audio: Clean up some CloseDevice() interface details.
66f1d7b arts: backed out audio capture support.
6fb74f5 dummy audio: Patched to compile.
e0a678c Fixed two old identifiers in header comments.
f73dc1f PSP: Fixed memory leak if video init failed.
d932507 WinRT: Removed not needed SDL_zerop() after SDL_calloc().
9cb82d5 Added brackets to function names in header comments so that doxygen links them.
31fc31c dummy audio: Implemented dummy audio capture support. :)
e717a37 bsdaudio: first shot at audio capture support!
a0e627f bsdaudio: this appears to be using the wrong variable...?
db0c70b arts: Patched to (maybe) compile.
3ed7e95 arts: implemented audio capture support.
2883d9c alsa: capture devices don't need a mixbuf allocated.
047cd6c testaudiocapture: made test app interactive.
000e5b9 coreaudio: Implemented audio capture for iOS.
effa79c testaudiocapture: Make a simple green/red window when recording/playing.
7fc1368 alsa: Implemented audio capture support!
94da231 alsa: Cleaned up the 5.1 swizzle mess a little.
c715b1b audio: a little more robustness in the capture device's thread.
4245d51 pulseaudio: Implemented audio capture support!
7793384 audio: implemented higher level infrastructure for running capture devices.
ff06555 audio: Made some SDL_AudioDevice fields atomic.
9396cce testaudiocapture: Let specific devices be opened.
f38c23d BUGS.txt: Bugzilla supports SSL; changed link to https:// ...
0a21fed audio: changed some internal ints to be SDL_bools.
9f68a03 nacl: unlock audio thread mutex when done with it.
40504bd audio: Make SDL_AudioDevice::shutdown an atomic value.
d8cbd0f audio: Implemented capture support for Mac OS X CoreAudio.
d2873d0 audio: Initial bits to enable audio capture support.
cea5990 Fixed information in touch README and changed identifiers so doxygen links them.
a07ce85 Android: Updated a comment.
b8ba8f4 Android: Replaced deprecated AbsoluteLayout with RelativeLayout.
1d6a327 Linux: Fixed memory leak in haptic implementation (thanks, Martin!).
437ec0a Pandora: Fixed memory leak in video implementation.
2a8870a Pandora: Fixed compile warnings in video implementation (thanks, Bombo!).
3aafe64 ALSA: Fixed adding wrong status to error message (thanks, romain145!).
87009d4 Pandora: Fixed SDL version in debug output.
c69d353 Pandora: Updated SDL version in Makefile.
7cd228c Pandora: Fixed referring to no more existing atomic source file in Makefile.
082159f Updated comments in video implementations.
778b4fd Pandora: Fixed compile error in video implementation (thanks, Bombo!).
70603ac Android: Fixed androidbuild.sh not working on OS X (thanks, Steffen!).
9272534 Android: Fixed missing export of a JNI function (thanks, Andrii!).
9c5eea9 Android: Fixed compile warning about a missing prototype (thanks, Sylvain!).
8522dff Fixed compile warnings about evaluating undefined identifiers.
d1caaa4 Tests: Would be wise to compile this
5564d04 Tests: Somehow tabs leaked in...
962f8d8 Tests: Add a manual test for a custom cursor (Taken from the API docs)
bd6c926 Tests: Mir needs the window to swap at lease 1 frame for the cursor to show. So render in testwm2
e7823e8 MIR: Fix system cursors. Been broken since custom cursor support was added!
2e8c081 Android: Added new key codes from API 24.
ebcd2e8 iOS: Fix an OpenGL ES error when rotating the device if MSAA is used (thanks Cole Campbell!)
93d2998 Fixed three source comments in tests.
68ef914 Added a simple test case for SDL_sscanf() to tests.
38b769c Fixed freeing strings created by strdup() with SDL_free().
71e7b71 Mac: Fixed crash if SDL_GetDisplayDPI() got NULL pointers for output parameters.
fedb2f1 Fixed compile warnings in test library about formats strings not being literals.
87a3a9d Mac: Updated file name in README.
86b7c57 Fixed Bug 3147 - Windows: Crash when resizing Window since hg 333216331863
246255b Mac: Updated availability macro in build script.
8b84c36 MIR: Add better error handling for a failed connection
4e0798b MIR: Support relative mouse mode
20cebbb Windows: Fix other window positions/sizes being changed when exiting exclusive fullscreen (bug #3315, thanks Simon Hug!)
0d2837a Mac: Fix a crash when SDL is compiled with SDL_MAC_NO_SANDBOX enabled, by increasing the stack size of the mouse tap thread back to OS X' default of 512 KB.
e2f5a30 Removed Mac OS 10.5 support (bug #3137). Also fixed a warning about deprecated Carbon code when using SDL_audio (bug #3127, thanks Dominik!)
1746440 Updated documentation of SDL_IsScreenSaverEnabled().
977f1e0 Windows: Fixed missing error message if SDL_GetDisplayDPI() failed.
b82ec16 X11: Fixed typos in error messages and source comments.
024c8f7 X11: Fixed missing error message if SDL_GetDisplayDPI() failed.
65f3835 WinRT: workaround a possible Windows bug, whereby hiding cursors, disables mouse-moved events
2645c41 X11: Fixed SDL_GL_GetSwapInterval() returning -1 if interval is unknown.
087d1dc EGL: Fixed SDL_GL_GetSwapInterval() returning -1 on error.
a34752c Updated documentation of SDL_CreateWindow() and SDL_CreateWindowFrom().
4f43ef2 iOS: Added brackets to function names in README so that doxygen links them.
ace33ee Fixed missing error message if SDL_GetDisplayDPI() is unsupported.
13dddf1 Fixed crash in shape test program if memory allocation failed.
104af62 Fixed error return values in filesystem test program.
410827f WinRT: allow on-screen keyboard to be shown via SDL APIs, Win10/UWP only
62a5ddb Fixed memory leak in game controller test program.
788f608 Updated documentation of SDL_HINT_THREAD_STACK_SIZE in header file.
75f76ed Added missing links at documentation of SDL_FreeCursor() in header file.
de04db8 Cocoa mouse code: Replaced NSPointInRect with NSMouseInRect (thanks Eric Wasylishen!) Fixes bug #3312.
aaeb21b Mac: replaced a deprecated CGSetLocalEventsSuppressionInterval call that I missed in commit f0645cd8fd39
f2cc87e Android: Updated name of README file.
691f045 WinRT: another README tweak
638d7e1 WinRT: README tweaks
c5a78d3 Wayland: Removed not needed including and setting of errno.
dd03d06 Fixed markdown formatting in porting README for doxygen output.
085f0f8 Added missing error return in test program.
9c370af PSP: Fixed compile error.
41093fd WinRT: build/link fix
a894234 Patched to compile on Haiku...?
2724ca1 windows: created threads' stack sizes should be reserved, not committed.
591371d Patched to compile on various platforms.
2ef7fa3 threads: Move SDL's own thread creation to a new internal API.
db39f16 threads: Handle SDL_HINT_THREAD_STACK_SIZE at top level, implement elsewhere.
2001a71 WinRT: bug hack-fix - gamepad detection was failing on Xbox One
cdfd49c iOS: Fixed SDL_GL_CreateContext crashing instead of returning null when a GLES3 context is requested on iOS 6 and older.
f09f435 alsa: Make device enumeration robust against weird results with NULL strings.
9811c0e iOS: Also do the Dictation crash workaround before executing the animation callback.
bcb782f Add a new hint SDL_HINT_MAC_MOUSE_FOCUS_CLICKTHROUGH, which allows mouse click events to occur when clicking to focus a window in Mac OS X.
2a4cda5 iOS: Workaround for a crash after Dictation is used.
7f88cc0 iOS: Fixed compiling demos on C89 compilers.
c1eb482 PSP: Fixed returning success from unsupported SDL_RenderReadPixels().
1ed6926 PSP: Fixed returning success for unsupported SDL_SetTextureColorMod().
4c5cebd PSP: Fixed missing error message for unsupported SDL_CreateWindowFrom().
5ac3e2b Updated info about required Ubuntu version for Mir support in README.
1f2d4a9 Wayland: Fixed missing error message if creating a custom cursor failed.
ee01a42 Removed not needed SDL_WINDOW_SHOWN from chessboard test program.
cdebe3d iOS: Removed not needed SDL_WINDOW_SHOWN from rectangles demo.
fe02f94 iOS: Fixed keyboard demo ignoring quit requests and window closing.
7b39911 iOS: Replaced #import with #include in two demos.
ed8d693 iOS: Restored older version of rectangles demo.
35cd6f6 iOS: Updated SDL version in demo README.
8f72e07 Fixed comment in gesture source.
58d97ae Mac: avoid calling CGSetLocalEventsSuppressionInterval, it was deprecated in OS X 10.6.
a1c1b64 Windows CMake: don't try to link dxguid, it's unavailable when using Visual Studio's XP-compatible toolset.
e1e235c Wayland: Fixed crash if memory mapping failed while creating a custom cursor.
ee66d57 Wayland: Fixed storing a theme cursor which is never used in video data.
aff83da Pick up new display mode information after a mode change (Windows only right now).
7a159d4 Quick fix for qsort off-by-one error.
0765eef Emscripten: Deactivated custom cursor support because it created system cursors.
0337adf Wayland: Fixed drawing created cursors without transparency.
dc0f5b5 Wayland: Fixed showing created cursors incorrectly before the first redraw.
e8db21a WinRT: Removed dead code and fixed memory leak if allocation for driver failed.
7d41ef9 Fixed compiling IME test program with HAVE_SDL_TTF on C89 compilers.
76322d4 Removed unnecessary include statement in test program.
8fc2032 A simple test program for SDL_qsort().
1999ffe Another commit to test revision control.
780d219 Minor tweak to a README to test Mercurial server.
3e91a9b Fixed infinite timeout in SDL_WaitEventTimeout() - thanks Константин Гончарик
be57775 Allow mappings to be added before GameControllerInit
5024f42 alsa: Implemented basic device detection.
9061ebe x11: Fix a few more XMoveWindow() calls to adjust for border size.
dd10fff x11: Deal with window borders better.
587245b Raspberry: Fixed crash if memory allocation for cursor failed.
15d7854 Fixed compile warnings about unused variables in IME test program.
fb2a2ce Wayland: Fixed fault in event handling which might have caused a crash someday.
3cbc1d0 Wayland: Fixed crash if allocating memory for cursor failed.
db1d8e8 Replaced strlen() with SDL_strlen() in IME test program.
7374150 wayland: Add wl_proxy_marshal_constructor_versioned sym
fe40c7d Mir: Do not use opengl to find the valid pixel format if we dont use opengl
2679809 Mir: Replaced memcpy() with SDL_memcpy().
c31a05d Mir: Fixed comment at conditional compilation macro.
35ad322 Fixed doxygen warnings about markdown formatting.
f3f7056 Mir: Fixed crash if allocating memory for cursor failed.
ac8b939 Regenerated configure script with Mir changes.
83c6740 Fix API/ABI breakage in Mir 0.13/0.14.
89bd9d9 Windows: Just use WaitForSingleObjectEx() everywhere.
c21c74f Windows: let threads be named in the debugger.
8429765 stdlib: Restored previous qsort() implementation; the licensing is resolved.
8880143 x11: better fix for the previous commit's fullscreen vs maximized issue.
a7084c5 x11: Don't mess with fullscreen vs maximized window state on unmapped windows.
6bcb829 Android: Restored Philipp's joystick change, lost in the previous merge.
0e5bf80 Merge Android C89 fixes from Eric Wing.
11cdfa4 x11/wayland/mir: Make the dynamic loading macro salsa a little less messy.
b0620b4 Added support for the Mad Catz FightStick TE S+ PS3
a101b66 Added support for the Mad Catz FightStick TE S+ PS4
a8ba85b Added support for the Akishop Customs PS360+ v1.66 and MadCatz PC USB Wired Stick 8818
7c6c32e Added support for several Mad Catz arcade sticks
4d1a9e8 Allow using the game controller API with arcade sticks and other XInput devices
78c1a2d Android: Changed an internal joystick function to return count instead of id.
9cd0343 x11: Patched to compile with DEBUG_XEVENTS on C89 compilers.
ea9112a x11: Removed an assert.
7f46f9d Another attempt to fix Windows build.
507ba3f Patched to compile on Visual Studio.
0d2fc8c Replaced SDL_qsort with public domain code from PDCLib: http://pdclib.e43.eu/
c8de039 Windows: make sure SDL_TicksInit has been called before calling Sleep(ms) in SDL_Delay. This ensures the Windows system timer resolution is properly set before Sleep is called.
e1aeb68 PSP: Deactivated dynamic API.
0e6fb89 PSP: Added missing object for generic TLS to Makefile.
0ecd662 Fixed spaces in license comments.
6e7137e Android: C89 cleanup to avoid warnings/errors since the default gcc mode on Android is still pre-C99.
43af35f x11: Updated imKStoUCS.* to latest from x.org.
5393318 iOS: Implemented clipboard support.
414d85c David Carlier implemented SDL_GetBasePath() for OpenBSD
b7e22a7 Return the full number of events from SDL_PeepEvents() if NULL is passed in with SDL_PEEKEVENT
fe3874c x11: Fix AltGr generating an invalid keycode (bug #3244). Thanks Thomas!
96364c0 PSP: Removed inlined copy of SDL_CalculateAudioSpec()'s functionality.
97ea1e7 Android: Fixed ignoring a return value while handling motion events.
dfd007d Fixed creating fullscreen windows on Steam Link
438241a Expose the EGL display and window for Vivante SDL windows
208f468 Fixed compile warnings about type conversion.
e50b7e4 Android: Fixed finishing Activity on some devices if right mouse button pressed.
537dfe8 Fixed two typos in documentation.
141d9a1 Android: Added mouse initialization to reset state.
acfa3cd Android: Fixed a comment.
40eb999 Android: Added mapping of mouse forward button and mouse back button.
f7e7ae2 Removed dead code (caught by Clang's static analyzer).
6b6cb64 CMake: only set "-O3 -g" defaults if CMAKE_BUILD_TYPE wasn't set at all.
850815b Fixed buildbot's static analysis script to enable assertions.
a876872 x11: make last mouse coords sane upon window entry (thanks, Cengiz!).
6aa640c Fixed --enable-new-dtags check with cmake
cb0161a Use --enable-new-dtags to set RUNPATH rather than RPATH so that LD_LIBRARY_PATH is not overridden by the application.
9e04e93 Fixed NULL dereference on drop events with no window associated.
81d9973 Updated debian packaging files
3355087 Updated dynamic API table.
c93d43c SDL_RenderSetIntegerScale
f0cab18 Mac: Implemented SDL_GetDisplayDPI (thanks, Kirill!).
9f87b9b Fixed compile warnings about uninitialized variables in test library.
212422e Fixed outdated information in a README for iOS.
ec0694a Fixed doxygen warnings.
612da1e CMake: Turned off Mac OS X rpath warning kludge.
0049c0e Patched to compile on iOS.
a3c8456 Android: Fixed up drop events for new interface.
717c0aa Patched to compile.
2503e42 Use SDL's stdinc functions instead of C runtime calls.
3230d74 Added SDL_WINDOWEVENT_TAKE_FOCUS.
8c55bb4 Added SDL_WINDOWEVENT_HIT_TEST.
cdd64f2 Added SDL_SetWindowModalFor().
19373e6 Added SDL_SetWindowInputFocus().
2875d70 Added SDL_SetWindowOpacity() and SDL_GetWindowOpacity().
8afe3ca Added SDL_GetWindowBordersSize().
518ad5e x11: Put a matching window_group wmhint on every window created.
eb318de Added SDL_DROPBEGIN and SDL_DROPCOMPLETE events, plus window IDs for drops.
7344ea2 Added special window type flags.
b8b82c1 Added SDL_DROPTEXT event, for dragging and dropping string data.
6a3cfbf Added SDL_GetDisplayUsableBounds().
4aa26b8 x11: Optimize SDL_GetGlobalMouseState() a little.
2eef453 x11: window managers might mark windows as FULLSCREEN _and_ MAXIMIZED.
89d3488 x11: Workaround window managers that mark fullscreen windows as maximized.
9c45fcc x11: Let apps specify that video init should fail if XRandR is unavailable.
b7dd1e0 x11: _NET_WM_PID needs a long, not a pid_t, I think.
d76bd41 CMake: Let static libraries optionally be built with Position Independent Code.
7406930 CMake: use the old MACOSX_RPATH behavior (for now), silence the warning.
feae242 Updated comment: this is the correct way to do fullscreen on X11 now.
42fe733 Added a few FIXMEs.
914be5d Try to build with GCC's -Wdeclaration-after-statement.
63c0f22 Mac: allows apps to use OpenGL on a slower, integrated GPU.
8a7251c Patch to compile on C89 compilers.
efad83a x11: Support _NET_WM_USER_TIME and give _NET_ACTIVE_WINDOW a valid timestamp.
30911d3 CMake: Don't link directly to libGL on Unix.
4f8b05a CMake: Don't make a libSDL2.so symlink on Mac OS X (do .dylib instead).
60493ef Remove almost all instances of "volatile" keyword.
1f6b2a5 Added tag release-2.0.4 for changeset e12c38730512
REVERT: a901827 Cherry-pick commits containing Mir and Wayland bug fixes.
REVERT: 42906b1 Fix cross-compiling builds using X11 shared libraries.
REVERT: 8bf5499 For CI - attempt to fix broken multiarch support in older CMake. This should be a non-issue when we have migrated to CMake 3.2.3 (now under development in refactor-buildsystem branch).
REVERT: 05b669a Fix cross-compiling builds using readline shared library.
REVERT: bc7faa3 Reduce direct exposure to SDL headers as much as possible.
REVERT: 0202a35 Mark the SDL source code changes to comply with its license.
REVERT: 1c7c765 Fix memory leak in SDL library.
REVERT: bcfa945 Quick fix to suppress confusing output msgs from SDL's CMakeLists.txt. [ci skip]
REVERT: e674a2d Attempt to fix SDL OpenGLES auto-detection for Emscripten on Windows.
REVERT: 70d7782 Misc. bug fixes and refactoring in configuring SDL library build. - Fix the regex to get the shared library soname correctly. - Use the GCC_ATOMIC and CLOCK_GETTIME whenever they are available. - Reorganize the if-else block in the SDL CMakeLists.txt to prevent Unix-like platforms (e.g. Android) from entering the block meant for genuine Unix/Linux. - and more.
REVERT: 39b0d93 Disable the in_title_click data & focus_click_pending tests for SDL windows mouse warp, as it seems to lead into issues when regaining focus. Closes #1258.
REVERT: 9e4599a Applied patch to fix undefined reference error when compiling for Wayland on Linux.
REVERT: 8bb4927 Fix all the cross-compiling builds due to bugs in SDL CMakeLists.txt. Fix SDL library build on iOS platform.
REVERT: 8111296 Fix all the cross-compiling builds due to bugs in SDL CMakeLists.txt. Fix SDL library build on Web platform.
REVERT: c0843ff Fix all the cross-compiling builds due to bugs in SDL CMakeLists.txt. Fix SDL library build on Windows platform.
REVERT: 97b13a3 Set CMake minimum version to 3.2.3 for Windows platform. This is in preparation to use optional components feature of find_package() command for FindDirectX.cmake module (was FindDirect3D).
REVERT: c2b276b Refactor the CPU instruction extensions detection mechanism. Fix SDL build on the latest Raspbian Jessie release.
REVERT: c6e37b0 Fix all the cross-compiling builds due to bugs in SDL CMakeLists.txt. Fix SDL library build on Linux, Android, and RPI platforms.
REVERT: ad600cb Integrate SDL's original CMakeLists.txt into Urho3D build system. Close #1046. Close #1123. Close #1172.
REVERT: 6f8be44 Utilize new SDLActivity's get arguments feature.
REVERT: 707b945 Fixes code that is not compliant with the C89 standard when compiling with MSVC
REVERT: 8fa701d Reset SDL's internal in_title_click variable whenever a normal mouse up/down event is received. Fixes #1151.
REVERT: cd54cb4 Parameterise the asset directory indicator character(s) using env-var.
REVERT: 0fa6cb2 Add new JNI function to interface with AssetManager.list() method. Fix #855.
REVERT: ef31a17 Fix red screen issue on affected Android devices models, e.g. S3.
REVERT: 3256dac Clean up SDK include dirs. Refactor FindUrho3D CMake module. For Travis CI - add new steps to install the Urho3D SDK and to reference Urho3D library from the installed SDK.
REVERT: e2378cc Rename everything 'RASPI' to 'RPI'. [ci rebase]
REVERT: 8e18071 Return a writable documents directory on iOS. Contributed by att.
REVERT: 4c4bed8 Fix memory allocation for the resources directory on iOS.
REVERT: 0e42c9d Added functions to remove one recorded touch gesture, or all touch gestures.
REVERT: d102dab Replace Char event with TextInput event for CJK IME support.
REVERT: 20dbc31 Gesture recording/load/save support and gesture events. SDL fixes to gesture events. Closes #304.
REVERT: 84ebe6e Filesystem class also captures stderr when executing console command. Turn on SDL filesystem support for Linux platform.
REVERT: 32e704b Android fixes. Bump required Android SDK required for compiling to 12 due to SDL joystick code. Removed the activity finish request code, as SDLActivity should now cleanly wait for the native thread to exit.
REVERT: a0b7dec Merge SDL 2.0.3.
git-subtree-dir: Source/ThirdParty/SDL
git-subtree-split: fe37f87a653a620611f01f3588444b547211405d
2016-11-09 18:08:19 +03:00
|
|
|
#endif
|
|
|
|
#if defined(SDL_VIDEO_DRIVER_VIVANTE)
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
int dummy;
|
|
|
|
/* No Vivante window events yet */
|
|
|
|
} vivante;
|
2016-03-15 20:05:38 +03:00
|
|
|
#endif
|
|
|
|
/* Can't have an empty union */
|
|
|
|
int dummy;
|
|
|
|
} msg;
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The custom window manager information structure.
|
|
|
|
*
|
|
|
|
* When this structure is returned, it holds information about which
|
|
|
|
* low level system it is using, and will be one of SDL_SYSWM_TYPE.
|
|
|
|
*/
|
|
|
|
struct SDL_SysWMinfo
|
|
|
|
{
|
|
|
|
SDL_version version;
|
|
|
|
SDL_SYSWM_TYPE subsystem;
|
|
|
|
union
|
|
|
|
{
|
|
|
|
#if defined(SDL_VIDEO_DRIVER_WINDOWS)
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
HWND window; /**< The window handle */
|
|
|
|
HDC hdc; /**< The window device context */
|
|
|
|
} win;
|
|
|
|
#endif
|
|
|
|
#if defined(SDL_VIDEO_DRIVER_WINRT)
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
IInspectable * window; /**< The WinRT CoreWindow */
|
|
|
|
} winrt;
|
|
|
|
#endif
|
|
|
|
#if defined(SDL_VIDEO_DRIVER_X11)
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
Display *display; /**< The X11 display */
|
|
|
|
Window window; /**< The X11 window */
|
|
|
|
} x11;
|
|
|
|
#endif
|
|
|
|
#if defined(SDL_VIDEO_DRIVER_DIRECTFB)
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
IDirectFB *dfb; /**< The directfb main interface */
|
|
|
|
IDirectFBWindow *window; /**< The directfb window handle */
|
|
|
|
IDirectFBSurface *surface; /**< The directfb client surface */
|
|
|
|
} dfb;
|
|
|
|
#endif
|
|
|
|
#if defined(SDL_VIDEO_DRIVER_COCOA)
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
#if defined(__OBJC__) && defined(__has_feature) && __has_feature(objc_arc)
|
|
|
|
NSWindow __unsafe_unretained *window; /* The Cocoa window */
|
|
|
|
#else
|
|
|
|
NSWindow *window; /* The Cocoa window */
|
|
|
|
#endif
|
|
|
|
} cocoa;
|
|
|
|
#endif
|
|
|
|
#if defined(SDL_VIDEO_DRIVER_UIKIT)
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
#if defined(__OBJC__) && defined(__has_feature) && __has_feature(objc_arc)
|
|
|
|
UIWindow __unsafe_unretained *window; /* The UIKit window */
|
|
|
|
#else
|
|
|
|
UIWindow *window; /* The UIKit window */
|
|
|
|
#endif
|
|
|
|
GLuint framebuffer; /* The GL view's Framebuffer Object. It must be bound when rendering to the screen using GL. */
|
|
|
|
GLuint colorbuffer; /* The GL view's color Renderbuffer Object. It must be bound when SDL_GL_SwapWindow is called. */
|
|
|
|
GLuint resolveFramebuffer; /* The Framebuffer Object which holds the resolve color Renderbuffer, when MSAA is used. */
|
|
|
|
} uikit;
|
|
|
|
#endif
|
|
|
|
#if defined(SDL_VIDEO_DRIVER_WAYLAND)
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
struct wl_display *display; /**< Wayland display */
|
|
|
|
struct wl_surface *surface; /**< Wayland surface */
|
|
|
|
struct wl_shell_surface *shell_surface; /**< Wayland shell_surface (window manager handle) */
|
|
|
|
} wl;
|
|
|
|
#endif
|
|
|
|
#if defined(SDL_VIDEO_DRIVER_MIR)
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
struct MirConnection *connection; /**< Mir display server connection */
|
|
|
|
struct MirSurface *surface; /**< Mir surface */
|
|
|
|
} mir;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(SDL_VIDEO_DRIVER_ANDROID)
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
ANativeWindow *window;
|
|
|
|
EGLSurface surface;
|
|
|
|
} android;
|
|
|
|
#endif
|
|
|
|
|
Squashed 'Source/ThirdParty/SDL/' changes from a901827..fe37f87
fe37f87 Integrate SDL's original CMakeLists.txt into Urho3D build system. This commit combines 19 previous commits made on top of SDL 2.0.4 release.
d8d5ea6 Define WINVER in SDL_windowsjoystick.c if not defined. Related to #1629.
cacbcec Fix memory leak in SDL library.
60d7ac2 Disable the in_title_click data & focus_click_pending tests for SDL windows mouse warp, as it seems to lead into issues when regaining focus. Closes #1258.
495d6da Utilize new SDLActivity's get arguments feature.
1277c8f Fixes code that is not compliant with the C89 standard when compiling with MSVC
60ba32f Reset SDL's internal in_title_click variable whenever a normal mouse up/down event is received. Fixes #1151.
91e81fa Parameterise the asset directory indicator character(s) using env-var.
6511eca Add new JNI function to interface with AssetManager.list() method. Fix #855.
b2a6c09 Fix red screen issue on affected Android devices models, e.g. S3.
0ff8347 Clean up SDK include dirs. Refactor FindUrho3D CMake module. For Travis CI - add new steps to install the Urho3D SDK and to reference Urho3D library from the installed SDK.
e5defe1 Return a writable documents directory on iOS. Contributed by att.
69215ae Fix memory allocation for the resources directory on iOS.
8bc2141 Added functions to remove one recorded touch gesture, or all touch gestures.
4a8cac5 Replace Char event with TextInput event for CJK IME support.
bb9249c Gesture recording/load/save support and gesture events. SDL fixes to gesture events. Closes #304.
43958df Android fixes. Bump required Android SDK required for compiling to 12 due to SDL joystick code. Removed the activity finish request code, as SDLActivity should now cleanly wait for the native thread to exit.
aa5a2ef Merge SDL 2.0.3.
5d7cfcc Fixed bug 3460 - docs/README-macosx.md: g++fat.sh should be g++-fat.sh in universal build command
100c615 Fixed bug 3461 - Implement TEXTINPUT events for Haiku
91af9fa Fixed crash on Mac OS X 10.10 and earlier
8bc6a7e Fixed bug 3369 - RaspberryPI ability to specify a Dispmanx layer
a416743 Worked around a crash on Mac OS X 10.10 and earlier, thanks to Eric Wasylishen.
e4105e7 Fixed bug 3444 - Android-TV: no more handling of back button on remote
aa631de Partial fix for bug 3092 - Statically link sdl2 with /MT for msvc
d40feeb Fixed bug 3456 - SDL_GameControllerOpen fails if the joystick subsystem isn't initialized
6eedda7 Fixed bug 3458 - x11: reset deadkeys in StartTextInput/StopTextInput
98f585e Linux: Added missing scancodes.
3ae8bbe Windows: Fixed not removing the always added hint callback on quit.
8704745 Linux: Removed not needed platform info from entry in controller database.
558617e Linux: Fixed compile warnings about unused variables.
cbe91a1 Android: Split long line in README.
66335e4 Removed unused constants in controllermap program.
d88450e emscripten: check if device pixel ratio has changed
420b160 Fixed compiler option warning for 64-bit builds on Visual Studio 2008
85e2c13 Fixed bug 3453 - First mouse button input after a drag and drop event is ignored
1090d1f Fixed bug 3452 - Getting unicode arguments for the main entry point on Windows
618b7a5 Fixed warning about redefining DECLSPEC
f700179 Fixed warning about missing field initializers in SDL_DBusContext Static variables are automatically initialized to zero.
90e4654 Fixed processing mouse and keyboard events in hatari, which uses the old SDLMain.m without creating an SDLApplication instance
df4c882 Fixed bug 2758 - Android issues with NDK r10c and API-21
52aad80 Fixed building with cmake when fcitx isn't installed
b4b3490 Fixed divide by zero if setting integer scale without setting logical width and height
bc850ed Fixed typo getting the drawable size
4e004d5 Fixed bug 3328 - Race condition in Wayland_VideoInit
f4c5462 Fixed bug 3451 - Raspberry Pi Raspbian SDL_assert triggered sometimes at RPI_WarpMouseGlobal
1e2589c Fixed black screen on Steam Link
307d753 Added support for the PS4 Slim controller, model CUH-ZCT2U
ed5b8e1 Fixed black screen on Steam Link
8cb0e92 Fixed bug 3355 - false "Invalid renderer" after creating an "opengles2" renderer.
3df3289 Added a note on how to allow non-root applications to increase their thread priority on Linux
f0a9a82 Work-around for a hang when USB devices are unplugged, contributed by James Zipperer
52fed49 Backed out change 92dc590a7116 which was: Fixed bug 3320 - SDL_windows_main.c defines both console application entry points With that change only the wmain() entry point was defined, and applications that linked with main() would no longer build.
6ffe2a5 Added note for David Carlier's work on OpenBSD
e7598ec Build SDL as universal binary
11f5755 Fixed build warning
ebf3f85 X11: Fixed compile warning about unused variable.
c514ae0 Removed empty statements in tests.
fdd0e41 Linux: Removed redundant function call.
0c68747 Fixed pointer signedness warning
b722466 Updated WhatsNew with 2.0.5 changes
97ec4f1 Fixed comment for new pixel formats
f91b4a6 Fixed bug 2923 - Add SDL_PIXELFORMAT_RGBA32 for byte-wise 32bit RGBA data
4e326f3 cmake: Now generates Wayland protocol source bits like the configure script.
faa1225 Fix invalid read from poor setlocale usage.
97db165 Fixed bug 3096 - SDL_BlitSurface with overlapping source and destination
5032214 Fixed a memory leak in function GL_RenderReadPixels
63bf89c Use SDL C runtime strlen()
42a861a alsa: more tapdancing to enumerate physical hardware devices.
3111f9a Made #if defined(X) consistent
9bc3025 Make sure we have iconv.h before building with it
1b0a9a8 Fixed compiling of three test programs with C++.
91423b4 Linux: Fixed mixed up scancodes.
de715c7 iOS: Updated demo README.
31a036e Fixed building and using fcitx IME support on Linux
1b032a0 Implemented SDL_GetHintBoolean() to make it easier to check boolean hints
98fbc3f SDL_HINT_WINDOWS_DISABLE_THREAD_NAMING
a2532cd ALSA_snd_pcm_drop() can hang on some systems (Steam Link) so don't use that when shutting down the ALSA audio driver.
de631d2 Fixed bug 2824 - Add Fcitx Input Method Support
d14ce58 Fixed bug 3438 - SDL_GameControllerEventWatcher: Log on event with value >= k_nMaxReverseEntries
701e14a Improve X11 key handling when XKB isn't available + add xvnc scancodes.
ee1f18b Additional patch to correct the number key assignments, and add assignments for keys that were missed
b07188e Fixed bug 3063 - Wayland: SDL resizes EGL surface to 0x0.
62d6856 Fixed bug 3061 - Selecting the dummy video driver on Mac OS X results in an error
a43ff2f Fixed bug 3043 - fix alsa configury and cmake checks
b579305 Fixed bug 3029 - software renderer cuts off edges when rotate-blitting with a multiple of 90 degrees
cccf665 Fixed bug 3022 - SDL_UnlockMutex(SDL_EventQ.lock) in SDL_PeepEvents can cause error when lock is null
b33fde0 Fixed bug 2983 - Update Android.readme to include Tegra Graphics Debugger compatibility tip
c55119c Converted README documentation to DOS text format
c54556c Fixed bug 2957 - De-reference rz_src without NULL check in SDLgfx_rotateSurface function
dd42a1c Fixed bug 2956 - De-reference videodata without NULL check in X11_DispatchEvent(_THIS) function
672afed Fixed bug 2952 - SDL_MixAudioFormat does not support audio format AUDIO_U16LSB/AUDIO_U16MSB
b0f8e0b Fixed bug 2924 - SDL_CreateRGBSurface[From] versions that take SDL_PIXELFORMAT enum
d53007a Fixed bug 2885 - SDL_stdinc.h doesn't need to include iconv.h
5939542 audio: Backed out the audio-thread detaching changes.
6e0f9b5 Fixed bug 2833 - Access Violation on SDL_PollEvent after init, delay and quit of joystick subsystem
d3e6678 Fixed bug 2832 - Inverted arrow-key navigation in MessageBox
c680df8 Fixed recentering triggers when the application doesn't have focus
0438241 Fixed bug 2823 - Release events for triggers receive wrong centered value
0d8bea4 Fixed bug 2808 - Fix SDL reporting wrong window size on resume
beedecb Applied Ubuntu patch bug_822210_fix_sdl2-config.cmake_whitespace.patch
ff255ca audio: Don't trust audio drivers to drain pending audio.
ae70bcd audio: better way to calculate buffer drain wait times.
764d036 audio: threading and device hang improvements.
11cf279 Some systems include both "default:" and "hw:" for the same usb device
c82d1cc fix for finding ALSA hotplug devices on Steam Link
069b980 Backed out a very unsafe change that was trying to prevent audio hang at quit.
c0ceb21 ensure SDL_AUDIODEVICEREMOVED gets sent when hotplug removes a device
09ecd06 fix deadlock on close device
0b40668 fix audio deadlock
7a98ee6 Modified the custom cursor test to be able to load BMP files as cursors
253cd06 Fixed bug 3021 - HapticOpenFromJoystick() problems
8914645 Fixed compiler warning about missing field initializers
705360d Fixed compiler warning - this should have been a const char pointer
3070ead Fixed potential buffer overflow in SDL_vsnprintf() (thanks, Taylor!).
7db0377 Fixed bug 2157 - Caps Lock key produces key down & key up events while key is still pressed.
321fdcc Fixed setting the version info in the shared library when using CMake
f0a55e2 Android: Fixed compile error.
820e748 Fixed wrong pixel format if reading pixels from OpenGL renderer.
c81f111 Added brackets to function names in header comments so that doxygen links them.
b84ac1f Fixed MinGW-w64 build warnings in SDL_render_d3d11.c
1515c1f Added SDL prefix to local IID constants
c5140ee WinRT: build fix in joystick code
bd4b1b3 Fixed bug 3437 - build error for WinRT/UWP .dlls, caused by fix for SDL bug 3336
8129eb5 Fix tabs -> spaces
7ee85d9 Fix bug 3436 - SDL_RaiseWindow not working on windows
94bec2e Fixed bug 3065 - Screen is flickering during closing on-screen keyboard on Android
6511fa6 Fixed bug 3078 - cmake: fix sdl2.m4 install location on cross hosts
f30f660 Fixed build on older Raspberry Pi environments
ece2bc8 Fixed warning and code style in SDL_evdev.c
8c37d6b Fixed build for X11
9f46868 Fixed windows build
b675802 Fixed build warnings and errors
179f2be Fixed bug 3107 OSX - Process events in SDLApplication to fix integration with CEF.
744356e Fixed bug 3116 - renderer->hidden in SDL_RenderCopy(Ex)
66c7d19 Fixed bug 3130 - Spacebar not responding
1b70faf Fix SDL not resizing window when Android screen resolution changes
bc36327 Fixed bug 3134 - CalculateXRandRRefreshRate() returns incorrect refresh rate due to floating point truncation.
0b2e713 Call setlocale + XSetModifiers before XOpenIM, Work around ibus+xim duplicate events.
680a6a1 Fixed bug 3138 - c_dfDIJoystick2 already defined in dinput8.lib
34ba394 Fixed 3149 - Mouse Pointer Raspberry Pi corrupt when moving over screen edges
f77ae11 Fixed bug 3157 - Rudimentary touchscreen support in SDL_evdev (supports Raspberry Pi)
7b44ab2 Fixed bug 3159 - SDL_blit_slow with BLENDING does not work
e3d8894 Fixed bug 3161 - SDL_WINDOWEVENT_EXPOSED event possible queue overflow
2803a1f Fixed bug 3165 - define numbers don't match types in Swift
894da7c Fixed bug 3169 - GLES2_CreateRenderer does not check SDL_GL_GetAttribute result, causing use of uninitialized data
7e0287b Fixed bug 3174 - SDL_SetRenderTarget clip rect
c14c8a1 Removed carriage returns from previous patch
70101d5 Fixed bug 3405 - Wrong default icon size on windows systems
5f44cde Fixed bug 3422 - OpenGL ES 1.1 renderer: SDL_UpdateTexture breaks later function calls (missing glDisable)
d5032ac Fix CMake setting an incorrect video backend on iOS
fd8e31b Fixed bug 3424 - SDL_GameController: Increase k_nMaxReverseEntries
6b80bec Fixed bug 3262 - Premake scripts are not compatible with "Genie" (premake fork)
13f3fd5 Fixed bug 3268 - CMAKE: ios fixes
e636f59 Fixed bug 3276 - build-scripts/showrev.sh prints the tip, which isn't useful if you're on a different -# branch, or just not sync'd to the tip.
7963feb Fixed bug 3301 - IBus support on Linux with CMake
8d7e011 Fixed bug 3305 - Fixed TextInput status when the keyboard was dismissed with the dismiss key on the iPad
94bfcde Force WM_PAINT events on window resize
c897935 Fixed bug 3318 - testime.c enhancement with GNU Unifont support
8ad2134 Fixed bug 3319 - Getting the POSIX out of testqsort.c
ec9642c Fixed bug 3320 - SDL_windows_main.c defines both console application entry points
574cc25 Fixed bug 3322 - Missing error checking in testaudioinfo and testaudiohotplug
8296b3f Fixed bug 3323 - SDL_LogOutput prints message twice on Windows when linked with libc
4eb41f3 Reset dead keys when the SDL window loses focus, so dead keys pressed in SDL applications don't affect text input into other applications.
e0095ad Fixed bug 3332 - Win32: reset deadkeys in StartTextInput/StopTextInput
a5e4a03 Fixed bug 3338 - console_wmain doesn't null terminate the argv array
a64ed63 Fixed bug 3345 - SDL_RenderClear inconsistency with ClipRect
adea337 Fixed bug 3347 - OpenGL ES renderer doesn't flip projection matrix for target textures
f1c567b Fixed bug 3349 - GLES2_RenderReadPixels doesn't use target texture format
225b99c Fixed bug 3350 - GL renderers don't need to flip rows after reading back pixels from the target texture
b8f4560 Fixed bug 3352 - Adding alpha mask support to SDL_SaveBMP_RW
e812846 Only use GCC pragmas when we're building with GCC
469d836 Fixed bug 3361 - Texture color modulation doesn't work with active NONE blend mode (opengl and opengles)
6c7cd4c Fixed bug 3362 - OpenGL renderer doesn't check if framebuffers are supported when creating target textures
02ae0da Fixed bug 3368 - SDL_Blit_Slow doesn't ignore alpha values in colorkey comparison
1d23b0f Fixed bug 3373 - OpenGL implementation differences of glDrawTexfOES
d71fc04 Fix running autogen.sh out-of-tree As done in GNOME's jhbuild building tool.
7f13262 We should be using a string constant for the strftime format string
d9190db Fix "format not a string literal" errors With GCC 6.1.
2948e51 Add gamecontrollerdb lines for SFC30 controller in various modes
c3ab42c Commit KEYCODE_SPACE as text input on Android
b26da9c Fixed bug 3336 - Failure to build with MinGW-w64
f4a55d3 Fixed bug 3388 - Fail to build src/thread/windows/SDL_systhread.c on MinGW 4.9.3
0d17b15 iOS: Removed unused constant in demo.
a604405 Fixed crash if allocating memory for mouse clicks failed.
77f3e90 windows: Removed hardcoded "1" for mouse clickthrough hint.
efa4b74 haiku: Patched to compile.
629e8b3 windows: fix borderless windows at desktop resolution (thanks, Evgeny!).
59a4809 x11: fixed incorrect SDL_GetWindowPosition() after resize (thanks, Jason!).
68abf12 Added SDL_SetWindowResizable(). (thanks, Ethan!)
d7c4e4a Fixed bug 3426 - Fixes for joystick related issues
82e8069 Fixed bug 3427 - Android accelerometer z-axis incorrect
295b859 Fixed bug 3429 - Update AM_PATH_SDL2() to also check for SDL2.framework
97b094e Added debug output for new window events
9961af2 Implemented SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH on X11
71e9b9f Added Windows support for SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH
5d60a58 Generalized the hint for whether the application gets a mouse event when clicking on the window to activate it, and is now named SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH. The behavior is defined to not receive the click event, and this hint allows you to override that.
273f71a When clicking on a window to give it focus, don't pass the mouse click to the application.
ee85553 Updated Linux notes on building with Mir and Wayland support.
7948587 Updated version to 2.0.5 in preparation for release
bd1799c Updated configure script.
c6bf0b8 iOS: Updated comment in demo.
ef9bde2 Enable SDL_LoadObject on iOS 8+ and tvOS.
d7b455f tvOS launch images are now properly supported.
448940e Update the code for the iOS demos to handle modern devices. Fixes bug #3337
d3410d3 Don't try to load a launch storyboard on tvOS (it doesn't use them).
1b8e2f3 iOS/tvOS: Try to load the launch screen as a storyboard. Xcode 8 compiles it as a storyboard instead of a nib.
2e80731 iOS/tvOS: Always send SDL_WINDOWEVENT_FOCUS_GAINED when a window is created on the main screen (fixes bug #3395).
053c6de Use OS-provided click counts on macOS and iOS for mouse press and release events.
9ec0713 Fix mouse wheel events on macOS 10.12 (thanks Eric Wasylishen!)
9a227e9 Mir: Add gamma support set/get. Still need one more function to complete the set
4f62256 Mir: Add fixme (waiting for a public api to be added)
e2434a9 [Mir] Move to the new MirDisplayConfig API
546554a Mac: Fixed markdown formatting in README.
42f3ecb Mac: Fixed whitespace around function return type.
0f1075b Fixed compiling of three test programs with C++.
7cbbd89 Android: Fixed two warnings about unused variables.
cac05aa Handle audio interruptions on iOS/tvOS. Fixes bugs 2569 and 2960.
0378b12 Xcode/mac: fix building standalone static and shared libraries.
597bf22 emscripten: get even more aggressive about audio device closing.
d2cb290 Recommended settings from Xcode 7.3.0
9b769a9 Fixed warning with Xcode 7.3.0
bc55781 Updated URL in a comment
3a2d9ce Added a new hint SDL_HINT_APPLE_TV_REMOTE_ALLOW_ROTATION.
5160ba4 tvOS: Add drop-file support
8d2e2aa Fixed set of libraries needed to build on Mac OS X
ed62fd2 Hopefully fixed the cmake build on Mac OS X
1b61eae Fixed building new coreaudio driver on Mac OS X
a98de9e CoreAudio iOS/tvOS: Use AVFoundation instead of AudioSession. Fixes audio on tvOS.
d3f9978 Fixed building for both iOS and tvOS on Xcode 8
a1e419f Fixed including OpenGL ES on iOS without any other SDL headers
2cbc2b9 Allow targeting tvOS
dcc80b6 Fixed spacing
dcc8498 Fixed accidental call to SDL_PrivateJoystickHat()
398a513 Initial Apple TV / tvOS support.
5935e90 Enable more compiler warnings in the Xcode projects (based on Xcode 8's suggestion), made some integer downcasts explicit.
f6a0ed8 Only prevent the default browser event handling when the specific event types aren't disabled by the user, patch contributed by Jonas Platte
7e29f2a Add mapping for media keys
a9c5c0a use Module.createContext for 2D rendering in emscripten
87fcf49 add some detail to fullscreen workaround comment; version 6
0666f33 only unset fullscreen flags if fullscreen failed
8d7af3e use screen resolution instead of canvas size
1f6196f Fix full screen mode in Firefox, which was broken by 9d4beb2
a45bf24 Support SDL_SetWindowTitle() via Module['setWindowTitle']()
16ce364 Remove unused variable warning from Emscripten build in Emscripten_HandleFullscreenChange().
1153627 Fix CMake CMAKE_REQUIRED_FLAGS handling to preserve existing CMake flags required by Emscripten toolchain.
467fa3d Unpress all keys on blur to avoid stuck keys
5220e32 Listen for blur and focus events on window instead of canvas
3bd567b Mouse events use CSS coordinates, so don't scale by pixel_ratio
fd627cf Accumulate subpixel mouse motion so motion is not lost.
5f08d5e Fix of mouse events in browser without pointer locks
16b7d18 optimize Emscripten_UpdateWindowFramebuffer
d642899 optimize a getValue
7c5a528 Include timers when using cmake (#29)
398f20c send mouse move on enter/leave
b1060d9 listen for mouse up on document (fixes mouseup outside canvas)
8b9e766 use SDL_SetMouseFocus
c35f8fe simplify fullscreen handling using new fullscreen_strategy api, patch contributed by Charlie Birks
fa82ab5 use css size for touch normalisation
372ca0e Reverted previous commit which breaks game controller input processing.
1019891 Suggestion from Apple: use kCFRunLoopCommonModes which does more complete event processing
c19a7e8 emscripten: special case to make SDL_ShowSimpleMessageBox() work.
450af28 emscripten-buildbot.sh: exit with an error if configure/make fail.
546eb95 mac: Patched to compile with CMake project.
f3c5574 coreaudio: Move from AudioUnits to AudioQueues.
2d2aede coreaudio: capture devices should let the system allocate the render buffer.
c89347a coreaudio: Replaced an int with an SDL_bool.
e41b4d3 coreaudio: Move some variable declarations to the top of the scope.
641bf4c Fixes building SDL on Ubuntu 16.04 with Mir headers installed
aa51d46 wayland: Add support for relative mouse mode, by Jonas Ådahl <jadahl@gmail.com>
44760bd wayland: Build own version of core protocol
1d3cd63 Wayland: Set "class" for each window we create This will be used by Wayland compositors to match the application ID and .desktop file to the SDL window(s).
fc0551d emscripten: Be more aggressive when closing audio capture devices.
68dcd6e WinRT: added an extra NULL pointer check for SDL_*ScreenSaver() backend code
474fc17 Mir: Add mouse grab support (requires mir 0.24)
63c0ba2 Fixed log message in audio capture test program.
aee365b Android: Removed unused internal function.
a3b6299 Android: Fixed misleading warning in log output (thanks, Sylvain!).
da705f6 Android: Fixed missing mouse motion events while button down (thanks, Sylvain!).
74cf2bf Fixed compiling if filesystem is disabled (thanks, Elias!).
2057ced WinRT: added SDL_*ScreenSaver() support; fixed crash when restoring app from screensaver
a1fec97 Fixed sorting and name of XBox wireless controller entry
144cbcb Merged Change: 3576099 from rel/streaming_client
cc18c09 WinRT: patched to compile
3caa2a8 cocoa: Fixed incorrect autorelease, noted by static analysis.
18a636e nacl: Patched to compile.
f8548a2 Patched to compile on Haiku.
b8e34b3 Merge audio capture work back into the mainline.
74eda00 Patched to compile.
8de6259 alsa: Implemented hotplug support, cleaned up device names.
1255ef8 ios: patched to compile.
3d116ad alsa: don't enumerate virtual devices, just physical hardware.
f98a06e Added SDL_PrivateJoystickAdded() and SDL_PrivateJoystickRemoved() Updated the removal code to iterate over all joystick add messages instead of just the first one.
b97a48e commit 1170112da3776fdb06425f62d57b63144c33dc51 Author: James Zipperer <james.zipperer@synapse.com> Date: Sun Aug 21 01:19:19 2016 -0700
7d1e740 Emscripten: Fixed crash if closing removed joystick (thanks, Sylvain!).
ea2a180 Android: Fixed crash if closing removed joystick (thanks, Sylvain!).
d5a6c71 WinRT: fixed bug where Win10 GameBar, when shown + hidden, might not restore a cursor's hidden state
7276d88 Added link in header comment.
7cc86e8 Emscripten: Fixed opening previously closed joystick.
e688740 Android: Fixed opening previously closed joystick (thanks, Sylvain!).
f098bb1 testaudiocapture: ask for way more output samples.
497af04 emscripten: send fake mouse events for touches, like other targets do.
f03b539 emscripten audio: check for an "undefined" object, remove some console.log().
fd200e0 audio: Cleaned up "extern AudioBootStrap" list.
7ab6161 audio: Renamed some internal driver symbols in various targets.
1ef00d5 android: implement audio capture support.
82140ec directsound: Implemented audio capture support.
6557ea0 windows: directsound should also map audio device GUIDs to proper names.
f2e2d65 audio: Patched to compile on C89 compilers.
da5e820 emscripten audio: fix timer on capture's silence callback.
938aa68 directsound: recalculate audiospec size before creating secondary buffer.
1a595df emscripten audio: Added audio capture support.
7ab0405 Added a FIXME.
7fd7e88 testaudiocapture: open capture device to same spec as output device.
d648625 audio: Only allocate fake_stream if we're using the standard audio threads.
6d4ba05 audio: simplifed check for internal callback.
cb8e57b [ OSX ] enables Xbox One S Guide (System Main Menu) button detection. the one possible impact is that since button identifiers on OSX are just their sequence in the HID report descriptor we might change the button order, and any existing/saved mappings may get their order changed.
bd3c62f dsp: Implemented audio capture support.
411ece1 winmm: Try to get full device names from the Windows Registry.
1096774 winmm: Added a FIXME for truncated device names.
007a2a8 winmm: Implemented audio capture support.
f9e9b84 Add Xbox One controller GUIDs to the XInput filter in the DirectInput joystick driver.
bcfb572 disk audio: Make default i/o delay match what device is meant to be running at.
602c102 disk audio: Implemented "capture" support, cleaned up some things.
532edaa testaudiocapture: use capture device buffer queueing, for better test coverage.
42e7791 audio: Implemented buffer queueing for capture devices (SDL_DequeueAudio()).
3614f6b testaudiocapture: don't use fullscreen for the window.
b441df5 audio: SDL_ClearQueuedAudio() should free everything but two packets.
ac07b3e nas: initial shot at audio capture support. Compiles, but not tested.
18b414b audio: Changed OnlyHasDefaultInputDevice to OnlyHasDefaultCaptureDevice.
fbb34c3 audio: changed some SDL_memset() calls to SDL_zero(), other minor corrections.
26a7583 audio: Removed internal SDL_audiomem.h and macros.
84e966c audio: Clean up some CloseDevice() interface details.
66f1d7b arts: backed out audio capture support.
6fb74f5 dummy audio: Patched to compile.
e0a678c Fixed two old identifiers in header comments.
f73dc1f PSP: Fixed memory leak if video init failed.
d932507 WinRT: Removed not needed SDL_zerop() after SDL_calloc().
9cb82d5 Added brackets to function names in header comments so that doxygen links them.
31fc31c dummy audio: Implemented dummy audio capture support. :)
e717a37 bsdaudio: first shot at audio capture support!
a0e627f bsdaudio: this appears to be using the wrong variable...?
db0c70b arts: Patched to (maybe) compile.
3ed7e95 arts: implemented audio capture support.
2883d9c alsa: capture devices don't need a mixbuf allocated.
047cd6c testaudiocapture: made test app interactive.
000e5b9 coreaudio: Implemented audio capture for iOS.
effa79c testaudiocapture: Make a simple green/red window when recording/playing.
7fc1368 alsa: Implemented audio capture support!
94da231 alsa: Cleaned up the 5.1 swizzle mess a little.
c715b1b audio: a little more robustness in the capture device's thread.
4245d51 pulseaudio: Implemented audio capture support!
7793384 audio: implemented higher level infrastructure for running capture devices.
ff06555 audio: Made some SDL_AudioDevice fields atomic.
9396cce testaudiocapture: Let specific devices be opened.
f38c23d BUGS.txt: Bugzilla supports SSL; changed link to https:// ...
0a21fed audio: changed some internal ints to be SDL_bools.
9f68a03 nacl: unlock audio thread mutex when done with it.
40504bd audio: Make SDL_AudioDevice::shutdown an atomic value.
d8cbd0f audio: Implemented capture support for Mac OS X CoreAudio.
d2873d0 audio: Initial bits to enable audio capture support.
cea5990 Fixed information in touch README and changed identifiers so doxygen links them.
a07ce85 Android: Updated a comment.
b8ba8f4 Android: Replaced deprecated AbsoluteLayout with RelativeLayout.
1d6a327 Linux: Fixed memory leak in haptic implementation (thanks, Martin!).
437ec0a Pandora: Fixed memory leak in video implementation.
2a8870a Pandora: Fixed compile warnings in video implementation (thanks, Bombo!).
3aafe64 ALSA: Fixed adding wrong status to error message (thanks, romain145!).
87009d4 Pandora: Fixed SDL version in debug output.
c69d353 Pandora: Updated SDL version in Makefile.
7cd228c Pandora: Fixed referring to no more existing atomic source file in Makefile.
082159f Updated comments in video implementations.
778b4fd Pandora: Fixed compile error in video implementation (thanks, Bombo!).
70603ac Android: Fixed androidbuild.sh not working on OS X (thanks, Steffen!).
9272534 Android: Fixed missing export of a JNI function (thanks, Andrii!).
9c5eea9 Android: Fixed compile warning about a missing prototype (thanks, Sylvain!).
8522dff Fixed compile warnings about evaluating undefined identifiers.
d1caaa4 Tests: Would be wise to compile this
5564d04 Tests: Somehow tabs leaked in...
962f8d8 Tests: Add a manual test for a custom cursor (Taken from the API docs)
bd6c926 Tests: Mir needs the window to swap at lease 1 frame for the cursor to show. So render in testwm2
e7823e8 MIR: Fix system cursors. Been broken since custom cursor support was added!
2e8c081 Android: Added new key codes from API 24.
ebcd2e8 iOS: Fix an OpenGL ES error when rotating the device if MSAA is used (thanks Cole Campbell!)
93d2998 Fixed three source comments in tests.
68ef914 Added a simple test case for SDL_sscanf() to tests.
38b769c Fixed freeing strings created by strdup() with SDL_free().
71e7b71 Mac: Fixed crash if SDL_GetDisplayDPI() got NULL pointers for output parameters.
fedb2f1 Fixed compile warnings in test library about formats strings not being literals.
87a3a9d Mac: Updated file name in README.
86b7c57 Fixed Bug 3147 - Windows: Crash when resizing Window since hg 333216331863
246255b Mac: Updated availability macro in build script.
8b84c36 MIR: Add better error handling for a failed connection
4e0798b MIR: Support relative mouse mode
20cebbb Windows: Fix other window positions/sizes being changed when exiting exclusive fullscreen (bug #3315, thanks Simon Hug!)
0d2837a Mac: Fix a crash when SDL is compiled with SDL_MAC_NO_SANDBOX enabled, by increasing the stack size of the mouse tap thread back to OS X' default of 512 KB.
e2f5a30 Removed Mac OS 10.5 support (bug #3137). Also fixed a warning about deprecated Carbon code when using SDL_audio (bug #3127, thanks Dominik!)
1746440 Updated documentation of SDL_IsScreenSaverEnabled().
977f1e0 Windows: Fixed missing error message if SDL_GetDisplayDPI() failed.
b82ec16 X11: Fixed typos in error messages and source comments.
024c8f7 X11: Fixed missing error message if SDL_GetDisplayDPI() failed.
65f3835 WinRT: workaround a possible Windows bug, whereby hiding cursors, disables mouse-moved events
2645c41 X11: Fixed SDL_GL_GetSwapInterval() returning -1 if interval is unknown.
087d1dc EGL: Fixed SDL_GL_GetSwapInterval() returning -1 on error.
a34752c Updated documentation of SDL_CreateWindow() and SDL_CreateWindowFrom().
4f43ef2 iOS: Added brackets to function names in README so that doxygen links them.
ace33ee Fixed missing error message if SDL_GetDisplayDPI() is unsupported.
13dddf1 Fixed crash in shape test program if memory allocation failed.
104af62 Fixed error return values in filesystem test program.
410827f WinRT: allow on-screen keyboard to be shown via SDL APIs, Win10/UWP only
62a5ddb Fixed memory leak in game controller test program.
788f608 Updated documentation of SDL_HINT_THREAD_STACK_SIZE in header file.
75f76ed Added missing links at documentation of SDL_FreeCursor() in header file.
de04db8 Cocoa mouse code: Replaced NSPointInRect with NSMouseInRect (thanks Eric Wasylishen!) Fixes bug #3312.
aaeb21b Mac: replaced a deprecated CGSetLocalEventsSuppressionInterval call that I missed in commit f0645cd8fd39
f2cc87e Android: Updated name of README file.
691f045 WinRT: another README tweak
638d7e1 WinRT: README tweaks
c5a78d3 Wayland: Removed not needed including and setting of errno.
dd03d06 Fixed markdown formatting in porting README for doxygen output.
085f0f8 Added missing error return in test program.
9c370af PSP: Fixed compile error.
41093fd WinRT: build/link fix
a894234 Patched to compile on Haiku...?
2724ca1 windows: created threads' stack sizes should be reserved, not committed.
591371d Patched to compile on various platforms.
2ef7fa3 threads: Move SDL's own thread creation to a new internal API.
db39f16 threads: Handle SDL_HINT_THREAD_STACK_SIZE at top level, implement elsewhere.
2001a71 WinRT: bug hack-fix - gamepad detection was failing on Xbox One
cdfd49c iOS: Fixed SDL_GL_CreateContext crashing instead of returning null when a GLES3 context is requested on iOS 6 and older.
f09f435 alsa: Make device enumeration robust against weird results with NULL strings.
9811c0e iOS: Also do the Dictation crash workaround before executing the animation callback.
bcb782f Add a new hint SDL_HINT_MAC_MOUSE_FOCUS_CLICKTHROUGH, which allows mouse click events to occur when clicking to focus a window in Mac OS X.
2a4cda5 iOS: Workaround for a crash after Dictation is used.
7f88cc0 iOS: Fixed compiling demos on C89 compilers.
c1eb482 PSP: Fixed returning success from unsupported SDL_RenderReadPixels().
1ed6926 PSP: Fixed returning success for unsupported SDL_SetTextureColorMod().
4c5cebd PSP: Fixed missing error message for unsupported SDL_CreateWindowFrom().
5ac3e2b Updated info about required Ubuntu version for Mir support in README.
1f2d4a9 Wayland: Fixed missing error message if creating a custom cursor failed.
ee01a42 Removed not needed SDL_WINDOW_SHOWN from chessboard test program.
cdebe3d iOS: Removed not needed SDL_WINDOW_SHOWN from rectangles demo.
fe02f94 iOS: Fixed keyboard demo ignoring quit requests and window closing.
7b39911 iOS: Replaced #import with #include in two demos.
ed8d693 iOS: Restored older version of rectangles demo.
35cd6f6 iOS: Updated SDL version in demo README.
8f72e07 Fixed comment in gesture source.
58d97ae Mac: avoid calling CGSetLocalEventsSuppressionInterval, it was deprecated in OS X 10.6.
a1c1b64 Windows CMake: don't try to link dxguid, it's unavailable when using Visual Studio's XP-compatible toolset.
e1e235c Wayland: Fixed crash if memory mapping failed while creating a custom cursor.
ee66d57 Wayland: Fixed storing a theme cursor which is never used in video data.
aff83da Pick up new display mode information after a mode change (Windows only right now).
7a159d4 Quick fix for qsort off-by-one error.
0765eef Emscripten: Deactivated custom cursor support because it created system cursors.
0337adf Wayland: Fixed drawing created cursors without transparency.
dc0f5b5 Wayland: Fixed showing created cursors incorrectly before the first redraw.
e8db21a WinRT: Removed dead code and fixed memory leak if allocation for driver failed.
7d41ef9 Fixed compiling IME test program with HAVE_SDL_TTF on C89 compilers.
76322d4 Removed unnecessary include statement in test program.
8fc2032 A simple test program for SDL_qsort().
1999ffe Another commit to test revision control.
780d219 Minor tweak to a README to test Mercurial server.
3e91a9b Fixed infinite timeout in SDL_WaitEventTimeout() - thanks Константин Гончарик
be57775 Allow mappings to be added before GameControllerInit
5024f42 alsa: Implemented basic device detection.
9061ebe x11: Fix a few more XMoveWindow() calls to adjust for border size.
dd10fff x11: Deal with window borders better.
587245b Raspberry: Fixed crash if memory allocation for cursor failed.
15d7854 Fixed compile warnings about unused variables in IME test program.
fb2a2ce Wayland: Fixed fault in event handling which might have caused a crash someday.
3cbc1d0 Wayland: Fixed crash if allocating memory for cursor failed.
db1d8e8 Replaced strlen() with SDL_strlen() in IME test program.
7374150 wayland: Add wl_proxy_marshal_constructor_versioned sym
fe40c7d Mir: Do not use opengl to find the valid pixel format if we dont use opengl
2679809 Mir: Replaced memcpy() with SDL_memcpy().
c31a05d Mir: Fixed comment at conditional compilation macro.
35ad322 Fixed doxygen warnings about markdown formatting.
f3f7056 Mir: Fixed crash if allocating memory for cursor failed.
ac8b939 Regenerated configure script with Mir changes.
83c6740 Fix API/ABI breakage in Mir 0.13/0.14.
89bd9d9 Windows: Just use WaitForSingleObjectEx() everywhere.
c21c74f Windows: let threads be named in the debugger.
8429765 stdlib: Restored previous qsort() implementation; the licensing is resolved.
8880143 x11: better fix for the previous commit's fullscreen vs maximized issue.
a7084c5 x11: Don't mess with fullscreen vs maximized window state on unmapped windows.
6bcb829 Android: Restored Philipp's joystick change, lost in the previous merge.
0e5bf80 Merge Android C89 fixes from Eric Wing.
11cdfa4 x11/wayland/mir: Make the dynamic loading macro salsa a little less messy.
b0620b4 Added support for the Mad Catz FightStick TE S+ PS3
a101b66 Added support for the Mad Catz FightStick TE S+ PS4
a8ba85b Added support for the Akishop Customs PS360+ v1.66 and MadCatz PC USB Wired Stick 8818
7c6c32e Added support for several Mad Catz arcade sticks
4d1a9e8 Allow using the game controller API with arcade sticks and other XInput devices
78c1a2d Android: Changed an internal joystick function to return count instead of id.
9cd0343 x11: Patched to compile with DEBUG_XEVENTS on C89 compilers.
ea9112a x11: Removed an assert.
7f46f9d Another attempt to fix Windows build.
507ba3f Patched to compile on Visual Studio.
0d2fc8c Replaced SDL_qsort with public domain code from PDCLib: http://pdclib.e43.eu/
c8de039 Windows: make sure SDL_TicksInit has been called before calling Sleep(ms) in SDL_Delay. This ensures the Windows system timer resolution is properly set before Sleep is called.
e1aeb68 PSP: Deactivated dynamic API.
0e6fb89 PSP: Added missing object for generic TLS to Makefile.
0ecd662 Fixed spaces in license comments.
6e7137e Android: C89 cleanup to avoid warnings/errors since the default gcc mode on Android is still pre-C99.
43af35f x11: Updated imKStoUCS.* to latest from x.org.
5393318 iOS: Implemented clipboard support.
414d85c David Carlier implemented SDL_GetBasePath() for OpenBSD
b7e22a7 Return the full number of events from SDL_PeepEvents() if NULL is passed in with SDL_PEEKEVENT
fe3874c x11: Fix AltGr generating an invalid keycode (bug #3244). Thanks Thomas!
96364c0 PSP: Removed inlined copy of SDL_CalculateAudioSpec()'s functionality.
97ea1e7 Android: Fixed ignoring a return value while handling motion events.
dfd007d Fixed creating fullscreen windows on Steam Link
438241a Expose the EGL display and window for Vivante SDL windows
208f468 Fixed compile warnings about type conversion.
e50b7e4 Android: Fixed finishing Activity on some devices if right mouse button pressed.
537dfe8 Fixed two typos in documentation.
141d9a1 Android: Added mouse initialization to reset state.
acfa3cd Android: Fixed a comment.
40eb999 Android: Added mapping of mouse forward button and mouse back button.
f7e7ae2 Removed dead code (caught by Clang's static analyzer).
6b6cb64 CMake: only set "-O3 -g" defaults if CMAKE_BUILD_TYPE wasn't set at all.
850815b Fixed buildbot's static analysis script to enable assertions.
a876872 x11: make last mouse coords sane upon window entry (thanks, Cengiz!).
6aa640c Fixed --enable-new-dtags check with cmake
cb0161a Use --enable-new-dtags to set RUNPATH rather than RPATH so that LD_LIBRARY_PATH is not overridden by the application.
9e04e93 Fixed NULL dereference on drop events with no window associated.
81d9973 Updated debian packaging files
3355087 Updated dynamic API table.
c93d43c SDL_RenderSetIntegerScale
f0cab18 Mac: Implemented SDL_GetDisplayDPI (thanks, Kirill!).
9f87b9b Fixed compile warnings about uninitialized variables in test library.
212422e Fixed outdated information in a README for iOS.
ec0694a Fixed doxygen warnings.
612da1e CMake: Turned off Mac OS X rpath warning kludge.
0049c0e Patched to compile on iOS.
a3c8456 Android: Fixed up drop events for new interface.
717c0aa Patched to compile.
2503e42 Use SDL's stdinc functions instead of C runtime calls.
3230d74 Added SDL_WINDOWEVENT_TAKE_FOCUS.
8c55bb4 Added SDL_WINDOWEVENT_HIT_TEST.
cdd64f2 Added SDL_SetWindowModalFor().
19373e6 Added SDL_SetWindowInputFocus().
2875d70 Added SDL_SetWindowOpacity() and SDL_GetWindowOpacity().
8afe3ca Added SDL_GetWindowBordersSize().
518ad5e x11: Put a matching window_group wmhint on every window created.
eb318de Added SDL_DROPBEGIN and SDL_DROPCOMPLETE events, plus window IDs for drops.
7344ea2 Added special window type flags.
b8b82c1 Added SDL_DROPTEXT event, for dragging and dropping string data.
6a3cfbf Added SDL_GetDisplayUsableBounds().
4aa26b8 x11: Optimize SDL_GetGlobalMouseState() a little.
2eef453 x11: window managers might mark windows as FULLSCREEN _and_ MAXIMIZED.
89d3488 x11: Workaround window managers that mark fullscreen windows as maximized.
9c45fcc x11: Let apps specify that video init should fail if XRandR is unavailable.
b7dd1e0 x11: _NET_WM_PID needs a long, not a pid_t, I think.
d76bd41 CMake: Let static libraries optionally be built with Position Independent Code.
7406930 CMake: use the old MACOSX_RPATH behavior (for now), silence the warning.
feae242 Updated comment: this is the correct way to do fullscreen on X11 now.
42fe733 Added a few FIXMEs.
914be5d Try to build with GCC's -Wdeclaration-after-statement.
63c0f22 Mac: allows apps to use OpenGL on a slower, integrated GPU.
8a7251c Patch to compile on C89 compilers.
efad83a x11: Support _NET_WM_USER_TIME and give _NET_ACTIVE_WINDOW a valid timestamp.
30911d3 CMake: Don't link directly to libGL on Unix.
4f8b05a CMake: Don't make a libSDL2.so symlink on Mac OS X (do .dylib instead).
60493ef Remove almost all instances of "volatile" keyword.
1f6b2a5 Added tag release-2.0.4 for changeset e12c38730512
REVERT: a901827 Cherry-pick commits containing Mir and Wayland bug fixes.
REVERT: 42906b1 Fix cross-compiling builds using X11 shared libraries.
REVERT: 8bf5499 For CI - attempt to fix broken multiarch support in older CMake. This should be a non-issue when we have migrated to CMake 3.2.3 (now under development in refactor-buildsystem branch).
REVERT: 05b669a Fix cross-compiling builds using readline shared library.
REVERT: bc7faa3 Reduce direct exposure to SDL headers as much as possible.
REVERT: 0202a35 Mark the SDL source code changes to comply with its license.
REVERT: 1c7c765 Fix memory leak in SDL library.
REVERT: bcfa945 Quick fix to suppress confusing output msgs from SDL's CMakeLists.txt. [ci skip]
REVERT: e674a2d Attempt to fix SDL OpenGLES auto-detection for Emscripten on Windows.
REVERT: 70d7782 Misc. bug fixes and refactoring in configuring SDL library build. - Fix the regex to get the shared library soname correctly. - Use the GCC_ATOMIC and CLOCK_GETTIME whenever they are available. - Reorganize the if-else block in the SDL CMakeLists.txt to prevent Unix-like platforms (e.g. Android) from entering the block meant for genuine Unix/Linux. - and more.
REVERT: 39b0d93 Disable the in_title_click data & focus_click_pending tests for SDL windows mouse warp, as it seems to lead into issues when regaining focus. Closes #1258.
REVERT: 9e4599a Applied patch to fix undefined reference error when compiling for Wayland on Linux.
REVERT: 8bb4927 Fix all the cross-compiling builds due to bugs in SDL CMakeLists.txt. Fix SDL library build on iOS platform.
REVERT: 8111296 Fix all the cross-compiling builds due to bugs in SDL CMakeLists.txt. Fix SDL library build on Web platform.
REVERT: c0843ff Fix all the cross-compiling builds due to bugs in SDL CMakeLists.txt. Fix SDL library build on Windows platform.
REVERT: 97b13a3 Set CMake minimum version to 3.2.3 for Windows platform. This is in preparation to use optional components feature of find_package() command for FindDirectX.cmake module (was FindDirect3D).
REVERT: c2b276b Refactor the CPU instruction extensions detection mechanism. Fix SDL build on the latest Raspbian Jessie release.
REVERT: c6e37b0 Fix all the cross-compiling builds due to bugs in SDL CMakeLists.txt. Fix SDL library build on Linux, Android, and RPI platforms.
REVERT: ad600cb Integrate SDL's original CMakeLists.txt into Urho3D build system. Close #1046. Close #1123. Close #1172.
REVERT: 6f8be44 Utilize new SDLActivity's get arguments feature.
REVERT: 707b945 Fixes code that is not compliant with the C89 standard when compiling with MSVC
REVERT: 8fa701d Reset SDL's internal in_title_click variable whenever a normal mouse up/down event is received. Fixes #1151.
REVERT: cd54cb4 Parameterise the asset directory indicator character(s) using env-var.
REVERT: 0fa6cb2 Add new JNI function to interface with AssetManager.list() method. Fix #855.
REVERT: ef31a17 Fix red screen issue on affected Android devices models, e.g. S3.
REVERT: 3256dac Clean up SDK include dirs. Refactor FindUrho3D CMake module. For Travis CI - add new steps to install the Urho3D SDK and to reference Urho3D library from the installed SDK.
REVERT: e2378cc Rename everything 'RASPI' to 'RPI'. [ci rebase]
REVERT: 8e18071 Return a writable documents directory on iOS. Contributed by att.
REVERT: 4c4bed8 Fix memory allocation for the resources directory on iOS.
REVERT: 0e42c9d Added functions to remove one recorded touch gesture, or all touch gestures.
REVERT: d102dab Replace Char event with TextInput event for CJK IME support.
REVERT: 20dbc31 Gesture recording/load/save support and gesture events. SDL fixes to gesture events. Closes #304.
REVERT: 84ebe6e Filesystem class also captures stderr when executing console command. Turn on SDL filesystem support for Linux platform.
REVERT: 32e704b Android fixes. Bump required Android SDK required for compiling to 12 due to SDL joystick code. Removed the activity finish request code, as SDLActivity should now cleanly wait for the native thread to exit.
REVERT: a0b7dec Merge SDL 2.0.3.
git-subtree-dir: Source/ThirdParty/SDL
git-subtree-split: fe37f87a653a620611f01f3588444b547211405d
2016-11-09 18:08:19 +03:00
|
|
|
#if defined(SDL_VIDEO_DRIVER_VIVANTE)
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
EGLNativeDisplayType display;
|
|
|
|
EGLNativeWindowType window;
|
|
|
|
} vivante;
|
|
|
|
#endif
|
|
|
|
|
2016-03-15 20:05:38 +03:00
|
|
|
/* Can't have an empty union */
|
|
|
|
int dummy;
|
|
|
|
} info;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* SDL_PROTOTYPES_ONLY */
|
|
|
|
|
|
|
|
typedef struct SDL_SysWMinfo SDL_SysWMinfo;
|
|
|
|
|
|
|
|
/* Function prototypes */
|
|
|
|
/**
|
|
|
|
* \brief This function allows access to driver-dependent window information.
|
|
|
|
*
|
|
|
|
* \param window The window about which information is being requested
|
|
|
|
* \param info This structure must be initialized with the SDL version, and is
|
|
|
|
* then filled in with information about the given window.
|
|
|
|
*
|
|
|
|
* \return SDL_TRUE if the function is implemented and the version member of
|
|
|
|
* the \c info struct is valid, SDL_FALSE otherwise.
|
|
|
|
*
|
|
|
|
* You typically use this function like this:
|
|
|
|
* \code
|
|
|
|
* SDL_SysWMinfo info;
|
|
|
|
* SDL_VERSION(&info.version);
|
|
|
|
* if ( SDL_GetWindowWMInfo(window, &info) ) { ... }
|
|
|
|
* \endcode
|
|
|
|
*/
|
|
|
|
extern DECLSPEC SDL_bool SDLCALL SDL_GetWindowWMInfo(SDL_Window * window,
|
|
|
|
SDL_SysWMinfo * info);
|
|
|
|
|
|
|
|
|
|
|
|
/* Ends C function definitions when using C++ */
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#include "close_code.h"
|
|
|
|
|
|
|
|
#endif /* _SDL_syswm_h */
|
|
|
|
|
|
|
|
/* vi: set ts=4 sw=4 expandtab: */
|