summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2019-04-17iOS: Remove code trying to support compilation on the iOS 7 SDK, the ↵Alex Szpakowski4-13/+4
deployment target has been set to iOS 8 for years and there's other unconditionally compiled code that depends on newer SDKs so that code is useless.
2019-04-17macOS: Fix compilation when using the 10.9 SDK or older.Alex Szpakowski1-1/+1
2019-03-17hidapi: Add GCN L/R buttons, just in case someone wants them...Ethan Lee1-2/+7
2019-04-12Android: when event loop is not blocking in pause, backup EGL context (Bug 4578)Sylvain Becker1-12/+27
Backup the EGL context when SDL_APP_DIDENTERBACKGROUND has been removed from the event queue.
2019-04-10Fix disabling OpenGL vsync on macOS 10.14.4+ (bug #4575).Alex Szpakowski1-1/+6
2019-04-10Fixed bug 4581 - generate synthetic mouse events at window boundariesSylvain Becker1-12/+12
when real touch events are actually outside the window.
2019-04-08Fixed bug 4581 - mouse events with SDL_TOUCH_MOUSEID make window lost focusSylvain Becker1-4/+12
Virtual mouse events should never leave the window or change focus for single window applications.
2019-04-08Fixed bug 4582 - Maximize/Resize not working on Windows 10Sylvain Becker1-3/+7
When viewport is set, projectionAndView changes, but ID3D11DeviceContext_UpdateSubresource was not called.
2019-04-06SDL_HINT_MOUSE_TOUCH_EVENTS: move tracking appart in case of 'window' is nullSylvain Becker1-5/+5
2019-04-06Bug 4581: move tracking appart so it doesn't require the window to have focusSylvain Becker1-4/+11
2019-04-05Fixed bug 4579 - SDL_android.c s_active not being atomicSam Lantinga1-4/+9
Isaias Brunet This bug cause a false assert due to multiple threads modifying the same variable without any atomic operation.
2019-04-05Set SDL_HINT_MOUSE_TOUCH_EVENTS for iPhone and iPad as wellSam Lantinga1-1/+1
2019-04-05https://bugzilla.libsdl.org/show_bug.cgi?id=4577Sam Lantinga1-9/+10
SDL_GetWindowDisplayMode was returning an incorrect result on iPhone Plus devices (tested on iOS 12.1/12.2). The problem was that the value returned by UIScreenMode was assumed to be the physical pixels on the display, rather than the scaled retina pixels. The fix is to use the scale returned by UIScreen.scale rather than the nativeScale.
2019-04-05Android: add hint SDL_HINT_ANDROID_BLOCK_ON_PAUSESylvain Becker3-16/+13
to set whether the event loop will block itself when the app is paused.
2019-04-05Android: default SDL_HINT_MOUSE_TOUCH_EVENTS to 1 as previous behaviourSylvain Becker1-4/+12
2019-04-04Android: remove SDL_HINT_ANDROID_SEPARATE_MOUSE_AND_TOUCHSylvain Becker3-31/+1
java layer runs as if separate mouse and touch was 1, Use SDL_HINT_MOUSE_TOUCH_EVENTS and SDL_HINT_TOUCH_MOUSE_EVENTS for generating synthetic touch/mouse events
2019-04-04Add hint SDL_HINT_MOUSE_TOUCH_EVENTS for mouse events to generate touch eventsSylvain Becker3-22/+76
controlling whether mouse events should generate synthetic touch events By default SDL will *not* generate touch events for mouse events
2019-04-04Bug 4576: track both FingerId and TrackIdSylvain Becker3-41/+34
2019-04-03Bug 4576: fix wrong scalingSylvain Becker1-2/+2
2019-04-02Bug 4576: one more warningSylvain Becker1-1/+0
2019-04-02Bug 4576: fix warning and compileSylvain Becker4-7/+5
2019-04-02Bug 4576: remove touch/mouse duplication for AndroidSylvain Becker1-39/+1
2019-04-02Bug 4576: remove touch/mouse duplication for IOSSylvain Becker1-27/+2
2019-04-02Bug 4576: remove touch/mouse duplication for WinRTSylvain Becker1-21/+0
2019-04-02 Bug 4576: remove touch/mouse duplication for EmscriptenSylvain Becker2-20/+0
2019-04-02 Bug 4576: remove touch/mouse duplication for WaylandSylvain Becker2-18/+0
2019-04-02Bug 4576: remove touch/mouse duplication for linux/EVDEVSylvain Becker1-23/+0
2019-04-02Bug 4576: remove touch/mouse duplication for WindowsSylvain Becker1-14/+17
2019-04-02Bug 4576: handle mapping of TouchEvents to MouseEvents at higher levelSylvain Becker1-0/+42
2019-03-27Handle potentially calling SDL_JoystickUpdate() and SDL_JoystickQuit() at ↵Sam Lantinga1-3/+7
the same time.
2019-03-25coreaudio: Set audio callback thread priority.Ryan C. Gordon1-0/+2
Fixes Bugzilla #4155.
2019-03-25Backed out changeset ffd52bb02bccRyan C. Gordon3-95/+125
This was meant to migrate CoreAudio onto the same SDL_RunAudio() path that most other audio drivers are on, but it introduced a bug because it doesn't deal with dropped audio buffers...and fixing that properly just introduces latency. I might revisit this later, perhaps by reworking SDL_RunAudio to allow for this sort of API better, or redesigning the whole subsystem or something, I don't know. I'm not super-thrilled that this has to exist outside of the usual codepaths, though. Fixes Bugzilla #4481.
2019-03-21opengles2: Fix static analysis warning.Ryan C. Gordon1-2/+4
Not clear if this could ever dereference NULL in real life, but better safe than sorry!
2019-03-19Hopefully fixed the mingw32 buildSam Lantinga1-0/+5
2019-03-19Fixed Visual Studio buildSam Lantinga1-1/+1
2019-03-19Didn't need to add SDL_windows.h include, that was already includedSam Lantinga1-1/+0
2019-03-19Fixed Windows RT buildSam Lantinga13-19/+28
2019-03-19Added support for building SDL as a dynamic library on iOSSam Lantinga5-4/+37
2019-03-16emscripten: force resize event when pixel ratio changesSebastian Krzyszkowiak1-1/+11
Without this, applications can't react to changed canvas size on window zoom.
2019-03-16Fixed bug 4450 - SDL_mouse.c fails to compile with CMake generated Visual ↵Sam Lantinga1-0/+3
Studio files if SDL_VIDEO_VULKAN 0/undefined Max Waine SDL_mouse.c, if compiled for Windows, requires GetDoubleClickTime to compile (available from winuser.h). Without Vulkan present this fails to compile as the include chain for winuser.h is the following. SDL_mouse.c -> SDL_sysvideo.h -> SDL_vulkan_internal.h -> SDL_windows.h -> windows.h -> winuser.h. Problem is that SDL_vulkan_internal.h doesn't include SDL_windows.h if Vulkan isn't present, so under MinGW/GCC it will give a -Wimplicit-function-declaration warning for GetDoubleClickTime, and under MSVC fails to compile completely. The solution to this would be to simplify the include chain: including SDL_windows.h under the same condition as GetDoubleClickTime (#ifdef __WIN32__) in SDL_mouse.c (or another file that isn't quite so indirectly included).
2019-03-16Fixed bug 4511 - SDL_gamecontrollerdb Mapping for Sony Playstation USB ↵Sam Lantinga1-2/+3
controller Renaud Lepage Simply submitting a new mapping.
2019-02-14Fixed DualShock 3 mappingSilent1-1/+1
2019-03-16Fixed bug 4525 - Fix crash in ALSA_HotplugThread caused by bad return value ↵Sam Lantinga1-1/+1
check Anthony Pesch Fix snd_device_name_hint return value check According to the ALSA documentation, snd_device_name_hint returns 0 on success, otherwise a negative error code. The code previously only considered -1 to be an error, which let other error codes through resulting in a segfault when hints (which was NULL) was dereferenced
2019-03-16Fixed CVE-2019-7635 and bug 4498 - Heap-Buffer Overflow in Blit1to4 ↵Sam Lantinga1-3/+24
pertaining to SDL_blit_1.c Petr Pisar The root cause is that the POC BMP file declares 3 colors used and 4 bpp palette, but pixel at line 28 and column 1 (counted from 0) has color number 3. Then when the image loaded into a surface is passed to SDL_DisplayFormat(), in order to convert it to a video format, a used bliting function looks up a color number 3 in a 3-element long color bliting map. (The map obviously has the same number entries as the surface format has colors.) Proper fix should refuse broken BMP images that have a pixel with a color index higher than declared number of "used" colors. Possibly more advanced fix could try to relocate the out-of-range color index into a vacant index (if such exists).
2019-03-16Fix polling left trigger reporting right trigger's values.Jimb Esser1-0/+2
2019-03-16Fix DirectInput error codes being lostJimb Esser1-2/+2
2019-03-12hidapi: Add support for Wii U/Switch USB GameCube controller adapter.Ethan Lee12-175/+712
Note that a single USB device is responsible for all 4 joysticks, so a large rewrite of the DeviceDriver functions was necessary to allow a single device to produce multiple joysticks.
2019-03-16Fix compiler warnings.Ryan C. Gordon2-4/+3
2019-03-15events: Disable all the signal-handling code on platforms without support.Ryan C. Gordon1-19/+31
So on Windows, for example, this mostly becomes a few empty functions.
2019-03-15events: Let arbitrary signals to simulate iOS/Android backgrounding events.Ryan C. Gordon3-47/+92
This lets you build a custom embedded device that roughly offers the "this process is going to the background NOW" semantics of SDL on a mobile device.