Commit Graph

  • 0b6a821188 Messages posted on the same tick are not new Brick 2021-10-12 14:08:20 +01:00
  • 0789610cfb Add SDL_HINT_WINDOW_NO_ACTIVATION_WHEN_SHOWN Rémy Tassoux 2021-10-14 00:52:05 +02:00
  • 227c33b8ec Add note about SDL_TICKS_PASSED hitting int overflow problems with large timeouts Sam Lantinga 2021-10-13 09:33:57 -07:00
  • 1fa154fda3 Fix weak enforcement of timeouts in SDL_WaitEventTimeout_Device. This will loop pumping events and waiting for a system event to come in. However not all system events will turn into an SDL event. It's not unusual for a Windows message to be some internal thing that SDL doesn't convert into a message. In that case the loop will simple circle but not exit. As long as such messages are coming in the loop will continue to run regardless of the timeout. When messages finally stop it'll still wait for the full timeout so you can have arbitrarily long delays. Sam Lantinga 2021-10-13 09:33:54 -07:00
  • 2423c51471 Work around hang in AAudioStream_write() during extended shared object loading while running in a debugger. Observed on a OnePlus 8T (KB2005) running Oxygen OS 11.0.10.10.KB05AA. The observed behavior is that any nonzero timeout value would hang until the device was paused and resumed. And a zero timeout value would always return 0 frames written even when audio fragments could be heard. Making a manual timeout system unworkable. None of the straightforward systems imply that there's a detectable problem before the call to AAudioStream_write(). And the callback set within AAudioStreamBuilder_setErrorCallback() does not get called as we enter the hang state. I've found that AAudioStream_getTimestamp() will report an error state from another thread. So this change codifies that behavior a bit until a better fix or more root cause can be found. Sam Lantinga 2021-10-13 09:33:51 -07:00
  • 325ae5c35d Android: getCurrentOrientation uses getContext() to retrieve the activity (see bug #4825) Sylvain 2021-10-13 08:35:56 +02:00
  • 0e294e90ae Ensure that SDL_InitSubSystem quits subsystems after an error. (#4834) Erik Soma 2021-10-12 18:55:31 -04:00
  • 6149e60136 remove IsWin10FCUorNewer() -- not used since commit 40ed9f75c9 Ozkan Sezer 2021-10-13 00:03:56 +03:00
  • 311671a029 fixed build after commit 6e356e20ad Ozkan Sezer 2021-10-12 23:50:02 +03:00
  • 6e356e20ad Fix mouse focus being set to null when a captured mouse cursor leaves the window. Rémy Tassoux 2021-10-12 18:35:52 +02:00
  • 9ee6942e79 Improve RISC OS implementations of SDL_GetBasePath and SDL_GetPrefPath Cameron Cawley 2021-09-22 14:01:00 +01:00
  • 3db898c5b6 riscos: Implement SDL_GetPrefPath() Cameron Cawley 2020-02-13 22:32:35 +00:00
  • 723f5cea43 Fixed bug #4825 - NullPointerException on SDLActivity.getCurrentOrientation() (Thanks Benau!) Sylvain 2021-10-12 20:58:58 +02:00
  • 1b49f09243 include: manually ran wikiheaders.pl and cleaned up the obvious issues. Ryan C. Gordon 2021-10-08 20:22:48 -04:00
  • 55f60847cb wikiheaders.pl: Try to handle functions with multiple declarations better. Ryan C. Gordon 2021-10-08 20:49:51 -04:00
  • 3970a885a5 wikiheaders.pl: Migrate in docs that exist only in the wiki. Ryan C. Gordon 2021-10-08 14:39:28 -04:00
  • 194657a2c6 include: Fix indentation on SDL_SoftStretch doxygen comment. Ryan C. Gordon 2021-10-08 15:57:18 -04:00
  • 40ed9f75c9 Workaround for Windows occasionally ignoring SetCursorPos() calls Sam Lantinga 2021-10-08 10:05:27 -07:00
  • 373216ae5b Added support for touchpads in the Linux evdev code (thanks Francisco!) Sam Lantinga 2021-10-07 18:14:16 -07:00
  • 16aeb8d0f5 Guarantee that we don't dispatch any mouse motion from before or including the last mouse warp Sam Lantinga 2021-10-07 15:04:06 -07:00
  • 649466f491 Flush any pending mouse motion when warping the mouse cursor Sam Lantinga 2021-10-07 13:28:44 -07:00
  • ad5205739e wayland: Only dispatch frame events in Wayland_GLES_SwapWindow Väinö Mäkelä 2021-10-06 09:52:06 +03:00
  • f30e2e438d Fix compiler warnings in testvulkan.c Brick 2021-10-06 22:52:33 +01:00
  • dd95c9c8a2 Moved focus click check into WIN_UpdateFocus() so we have the correct state when setting keyboard focus Sam Lantinga 2021-10-06 09:09:39 -07:00
  • 1ec409c214 Don't warp the mouse within a window while it's minimized Sam Lantinga 2021-10-06 09:09:09 -07:00
  • 87ac373493 Fix Debug-only builds with CMake Daniel Gibson 2021-10-06 03:39:59 +02:00
  • 0d541e5a88 Revert "Fixed relative mode mouse events stopping if you click on the title bar" DomGries 2021-10-06 00:36:27 +02:00
  • c542de9213 React to WM_NCACTIVATE instead of WM_SETFOCUS or WM_ACTIVATE for focus changes Sam Lantinga 2021-10-05 14:08:36 -07:00
  • ab7910facf cmake: Move the old, global add_definitions (etc) to an interface library. Ryan C. Gordon 2021-10-05 12:34:29 -04:00
  • f1793af404 cmake: removed an add_definitions call. Ryan C. Gordon 2021-10-05 11:19:30 -04:00
  • 25fdba39bb cmake: fix indentation. Ryan C. Gordon 2021-10-05 11:19:14 -04:00
  • f306662544 cmake: Correctly set IOS variable. Ryan C. Gordon 2021-10-05 11:13:41 -04:00
  • 60d59aeb61 cmake: Calculate padding for dislaying options automatically. Ryan C. Gordon 2021-10-05 10:54:06 -04:00
  • 7850d0cf6f cmake: Prefix all options with "SDL_" Ryan C. Gordon 2021-10-05 10:43:35 -04:00
  • 172957387e PSP: links for setting up, compiling and running on PSP Sylvain 2021-10-04 22:12:08 +02:00
  • f080273acd PSP: add implementation for RenderGeometry Sylvain 2021-10-04 22:00:16 +02:00
  • e92a639b23 replaced many uses of libc calls with SDL_ counterparts in os2 sources. Ozkan Sezer 2021-10-04 23:00:28 +03:00
  • dd9b2daf8d PSP: fixed build Sylvain 2021-10-04 21:56:42 +02:00
  • 3ea35fe5bb fix SDL_atoi() Ozkan Sezer 2021-10-04 21:32:00 +03:00
  • 407867cf72 Alias SDL2::SDL2 to SDL2::SDL2-static on static-only builds Ivan Epifanov 2021-07-13 13:47:08 +03:00
  • cd7ef24cba minor update to os2 makefile. Ozkan Sezer 2021-10-04 00:32:56 +03:00
  • c501d159a9 Fixed range for Steam Controller sensor values Sam Lantinga 2021-10-03 14:10:21 -07:00
  • ea1a2b94f2 Use the correct update rate for Steam Controller sensors Sam Lantinga 2021-10-02 09:12:57 -07:00
  • eadc8f9355 wayland: Cleanup some SDL_TryLockMutex() calls. David Gow 2021-10-02 23:08:39 +08:00
  • 25f9e32b0e wayland: Don't let multiple threads dispatch wayland events at once David Gow 2021-10-02 16:52:43 +08:00
  • 8b74575267 Added support for the gyro and accelerometer on Steam Controllers Sam Lantinga 2021-10-01 21:32:21 -07:00
  • db18764e41 Use correct relative include path Sam Lantinga 2021-10-01 16:27:59 -07:00
  • 632aca2945 Window input focus is based on WM_SETFOCUS and WM_KILLFOCUS as WM_ACTIVATE doesn't necessarily imply focus. Sam Lantinga 2021-10-01 16:17:38 -07:00
  • 9706feacae Update length after shortening string (thanks mayraud705!) Sam Lantinga 2021-10-01 15:11:25 -07:00
  • 77acd44f28 DirectFB: fixed creation of palette textures Sylvain 2021-10-01 22:30:51 +02:00
  • 83d600904b DirectFB: add partial support for RenderGeometry allow to fill triangles with color or texture but only uniform vertex color is handled (not per vertex color) Sylvain 2021-09-30 23:47:37 +02:00
  • 7def81cf42 wikiheaders.pl: Don't treat chars in code blocks as markdown. Ryan C. Gordon 2021-09-30 17:34:25 -04:00
  • 2f93fbbb75 include: Fix markdown in a doxygen comment. Ryan C. Gordon 2021-09-30 10:04:09 -04:00
  • ab09f3dae5 cmake: Remove warning about CFLAGS environment variable. Ryan C. Gordon 2021-09-30 10:00:58 -04:00
  • cd6f96dede cmake: bump minimum CMake allowed to 3.11.0. Ryan C. Gordon 2021-09-30 09:57:51 -04:00
  • 344f018dfd Xcode-iOS Demos: Add CFBundleShortVersionString to Info.plist Daniel Inkpen 2021-09-30 00:06:09 +01:00
  • c270949b5e Add a fast path for ARGB888->(A)BGR888 blending with pixel alpha Cameron Cawley 2021-09-28 18:07:22 +01:00
  • 8b23029d23 Sync wiki -> header SDL Wiki Bot 2021-09-28 17:03:06 +00:00
  • f79ac6a8de cmake: Don't use the CFLAGS environment variable. Ryan C. Gordon 2021-09-27 23:31:23 -04:00
  • 114d1d46ac direct3d: Remove unnecessary render target support check. Ryan C. Gordon 2021-09-27 23:18:25 -04:00
  • 0fc43504a0 wayland: Add support for XCURSOR_THEME/SIZE Ethan Lee 2021-09-27 16:41:43 -04:00
  • 7c050aa60a egl: Don't fail to create a context if KHR_create_context_no_error is unsupported Martin Mauersics 2021-09-27 13:53:16 -04:00
  • 35d045584d video: wayland: Support displays with a 0 refresh rate David Gow 2021-09-27 16:57:09 +08:00
  • ba87876ef7 fix syntax error in SDL.vcxproj.filters Ozkan Sezer 2021-09-27 14:10:02 +03:00
  • 9672d58119 Need to check structure version before setting xdg_toplevel to NULL Sam Lantinga 2021-09-26 14:22:11 -07:00
  • 14f225198d Use SDL_calloc for allocation of gxm_texture Northfear 2021-09-26 18:11:22 +03:00
  • b592e78f93 wayland: Expose xdg_toplevel to SysWM Cacodemon345 2021-09-25 12:55:41 +06:00
  • 7a1690eb63 Sync wiki -> header SDL Wiki Bot 2021-09-26 02:32:05 +00:00
  • 7becc41495 Sync wiki -> header SDL Wiki Bot 2021-09-25 17:36:04 +00:00
  • d854ba99c2 Removed X11 code from Apple Xcode project Sam Lantinga 2021-09-24 10:59:35 -07:00
  • 477fcf52e9 Fixed whitespace Sam Lantinga 2021-09-24 10:49:46 -07:00
  • db68af8032 Reduce the likelyhood that the mouse will hover over the taskbar or toast notification while in relative mode, which causes a mouse leave event. Sam Lantinga 2021-09-24 10:49:44 -07:00
  • ce66051b0a regenerated configure Ozkan Sezer 2021-09-24 04:03:24 +03:00
  • ef8c4d27d7 wayland: Require xkbcommon 0.5.0 or newer (2014-10-18) Ethan Lee 2021-09-23 17:43:53 -04:00
  • decd1b4d74 testdraw2: display FPS similarly to testsprit2. fix helper syntax Sylvain 2021-09-23 22:28:45 +02:00
  • 7ed415d2ed wayland: Reuse KeySymToUcs4 to replicate X11 keymap behavior Ethan Lee 2021-09-23 14:07:38 -04:00
  • 1a4e2e5ef7 wayland: For text, ignore key events when Ctrl is held Ethan Lee 2021-09-23 14:31:54 -04:00
  • 0aff42a159 egl: Group data fields before function pointers in SDL_EGL_VideoData. Ryan C. Gordon 2021-09-23 00:02:44 -04:00
  • 0ad4956c06 egl: explicitly call eglBindAPI during SDL_GL_MakeCurrent. Ryan C. Gordon 2021-09-23 00:00:46 -04:00
  • 3147716022 egl: make an int into an SDL_bool. Ryan C. Gordon 2021-09-22 09:27:41 -04:00
  • 4ec259a784 Fixed building on Visual Studio 2013 and older Sam Lantinga 2021-09-22 19:06:11 -07:00
  • 287571fb46 Limit effect of in_title_click and focus_click_pending to only blocking cursor warping; without this all relative mouse motion was getting ignored when a window was activated via a mouse button Sam Lantinga 2021-09-22 17:40:57 -07:00
  • 5292156398 End Scene on RunCommandQueue on Vita Northfear 2021-09-22 21:23:42 +03:00
  • 08ae790497 Replace calls to asprintf with SDL_asprintf Cameron Cawley 2021-09-14 20:38:03 +01:00
  • 25a614bc3e Add SDL_asprintf and SDL_vasprintf Cameron Cawley 2021-09-14 20:37:35 +01:00
  • 79b0aae86c The return value of SDL_snprintf is the number of characters that would have been written. Sam Lantinga 2021-09-22 11:42:10 -07:00
  • 9b74623be9 wayland: Woops, forgot to assign cursor theme size... Ethan Lee 2021-09-22 13:52:36 -04:00
  • 8e54698aa6 wayland: Add support for high-DPI cursors Ethan Lee 2021-09-22 13:26:44 -04:00
  • 42ae9116ad Getting "(null)" when formatted printing NULL is a valid result Sam Lantinga 2021-09-22 10:01:42 -07:00
  • a4a9d28461 You may need to wait a bit for SDL_WarpMouseInWindow() to complete Sam Lantinga 2021-09-22 09:56:06 -07:00
  • 94a42af570 Fixed the name of the verbose hints Sam Lantinga 2021-09-22 09:49:41 -07:00
  • b914bc3954 SDL_PIXELFORMAT_ARGB2101010 isn't fully supported for all surface conversion paths yet Sam Lantinga 2021-09-22 09:48:51 -07:00
  • e5d59fa77c Fixed building testgles2 on Linux Sam Lantinga 2021-09-22 09:31:26 -07:00
  • 0c8277e9bd Added testgeometry to the git ignore file Sam Lantinga 2021-09-22 09:30:28 -07:00
  • 432ee7d8ad Fixed building SDL_dynapi.c without stdio support Sam Lantinga 2021-09-22 09:29:21 -07:00
  • 345c161feb Fixed some accidental uses of external C runtime functions Sam Lantinga 2021-09-22 09:06:45 -07:00
  • 5d455cabf9 Don't process raw input when the window is being dragged or clicked on. Sam Lantinga 2021-09-21 18:15:11 -07:00
  • 0fd54f91f4 Fixed using a tablet with raw input relative motion Sam Lantinga 2021-09-21 18:15:11 -07:00
  • b687c0ff2c Integrate fix for Source 2's Win32 build that does '#define __i386__ 1' which causes it to hit the __i386__ case instead of the _MSC_VER case. Sam Lantinga 2021-09-21 18:15:10 -07:00
  • 8fee82d1fd Improve relative motion handling over RDP Sam Lantinga 2021-09-21 18:15:09 -07:00