Commit Graph

  • 10c292b055 cmake+xcode: use IMPORTED SHARED framework target Anonymous Maarten 2023-12-10 11:50:11 +01:00
  • ddac844034 Fixed build Sam Lantinga 2023-12-09 21:44:12 -08:00
  • dd28637947 Use the Steam virtual gamepad slot as the gamepad player index Sam Lantinga 2023-12-09 21:00:32 -08:00
  • 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index Sam Lantinga 2023-12-09 21:00:32 -08:00
  • 445f08a0fb Print the gamepad player index when opening a gamepad Sam Lantinga 2023-12-09 21:00:11 -08:00
  • 5b26d4e0ca Sort Steam virtual gamepads by Steam controller slot Sam Lantinga 2023-12-09 20:31:28 -08:00
  • 17723381da Sort Steam virtual gamepads by Steam controller slot Sam Lantinga 2023-12-09 20:31:28 -08:00
  • f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. Ryan C. Gordon 2023-12-09 15:41:45 -05:00
  • 63ae84e140 x11: Improve sync algorithm Frank Praznik 2023-12-08 12:37:10 -05:00
  • 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef Frank Praznik 2023-12-08 04:50:52 -05:00
  • 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() Sam Lantinga 2023-12-07 14:30:44 -08:00
  • 53cda988f4 Clear any errors from a previous run Sam Lantinga 2023-12-07 14:30:40 -08:00
  • a197efe3a7 pen: fix leak caused by pen subsystem Anonymous Maarten 2023-11-27 21:37:02 +01:00
  • fbb0914b78 wayland+x11: free system cursors when quiting video Anonymous Maarten 2023-11-27 21:30:59 +01:00
  • 7484d02a2e testshape: use SDL_test to create multiple windows Anonymous Maarten 2023-11-27 21:20:01 +01:00
  • 20250aecc5 Sync SDL3 wiki -> header SDL Wiki Bot 2023-12-07 18:27:25 +00:00
  • 4fd778119b video: Implement asynchronous windowing Frank Praznik 2023-10-25 15:09:55 -04:00
  • ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." Sam Lantinga 2023-12-05 14:42:31 -08:00
  • e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build Ozkan Sezer 2023-12-06 01:32:00 +03:00
  • f00ecf5f19 Fixed building with older Windows SDK Sam Lantinga 2023-12-05 11:00:18 -08:00
  • 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration Sam Lantinga 2023-12-05 10:55:29 -08:00
  • aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h Sam Lantinga 2023-12-04 22:05:35 -08:00
  • c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. Sam Lantinga 2023-12-04 21:57:14 -08:00
  • 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). Sam Lantinga 2023-12-04 21:55:34 -08:00
  • 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. Sam Lantinga 2023-12-04 21:54:38 -08:00
  • b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c Sam Lantinga 2023-12-04 21:53:14 -08:00
  • 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). Sam Lantinga 2023-12-04 21:49:49 -08:00
  • 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. Sam Lantinga 2023-12-04 21:47:59 -08:00
  • 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. Sam Lantinga 2023-12-04 21:47:10 -08:00
  • 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. Sam Lantinga 2023-12-04 21:46:17 -08:00
  • 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. Sam Lantinga 2023-12-04 21:45:39 -08:00
  • e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. Sam Lantinga 2023-12-04 21:44:26 -08:00
  • 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c Sam Lantinga 2023-12-04 21:42:47 -08:00
  • 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c Sam Lantinga 2023-12-04 21:38:37 -08:00
  • a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' Sam Lantinga 2023-12-04 21:33:27 -08:00
  • 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. Sam Lantinga 2023-12-04 21:29:29 -08:00
  • 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). Sam Lantinga 2023-12-04 21:28:27 -08:00
  • 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. Sam Lantinga 2023-12-04 21:26:49 -08:00
  • b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. Sam Lantinga 2023-12-04 21:25:50 -08:00
  • 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized Sam Lantinga 2023-12-04 21:24:37 -08:00
  • fda039e6f8 Fixed analyzer warnings for SDL_string.c Sam Lantinga 2023-12-04 21:21:51 -08:00
  • 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. Sam Lantinga 2023-12-04 21:00:25 -08:00
  • eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). Sam Lantinga 2023-12-04 20:59:43 -08:00
  • 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. Sam Lantinga 2023-12-04 20:58:58 -08:00
  • 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. Sam Lantinga 2023-12-04 20:57:27 -08:00
  • 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. Sam Lantinga 2023-12-04 20:54:11 -08:00
  • c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. Sam Lantinga 2023-12-04 20:30:52 -08:00
  • 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. Sam Lantinga 2023-12-04 20:35:14 -08:00
  • 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. Sam Lantinga 2023-12-04 20:32:50 -08:00
  • c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. Sam Lantinga 2023-12-04 20:28:42 -08:00
  • 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). Sam Lantinga 2023-12-04 20:25:18 -08:00
  • a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem Sam Lantinga 2023-12-04 20:22:23 -08:00
  • 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. Sam Lantinga 2023-12-04 20:15:42 -08:00
  • 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). Sam Lantinga 2023-12-04 20:01:15 -08:00
  • 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. Sam Lantinga 2023-12-04 19:57:21 -08:00
  • 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. Sam Lantinga 2023-12-04 19:45:54 -08:00
  • 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. Sam Lantinga 2023-12-04 19:43:41 -08:00
  • fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. Sam Lantinga 2023-12-04 19:33:25 -08:00
  • f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). Sam Lantinga 2023-12-04 19:30:01 -08:00
  • 6cfce101fb Don't call the property cleanup function if setting the property fails Sam Lantinga 2023-12-04 07:48:13 -08:00
  • 14380ec48a Fixed signed/unsigned comparison warning Sam Lantinga 2023-12-03 14:56:21 -08:00
  • ac0751a652 Added SDL_strnstr() Sam Lantinga 2023-12-03 14:42:28 -08:00
  • 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). Sylvain 2023-12-01 15:58:13 +01:00
  • 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content Sam Lantinga 2023-12-01 10:51:54 -08:00
  • ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code Sam Lantinga 2023-12-01 09:08:23 -08:00
  • 66e532fa61 Handle out of memory errors without any allocation Sam Lantinga 2023-12-01 09:05:04 -08:00
  • 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h foobit 2023-11-30 18:44:20 -05:00
  • 675423f096 Sync SDL3 wiki -> header SDL Wiki Bot 2023-12-01 06:39:09 +00:00
  • 757c984ddb gamecontroller: Backport 3.0 'type:' field to 2.0 Ethan Lee 2023-11-27 17:12:01 -05:00
  • 744a29b88f WGI: Cleanup code a bit (#8647) Dimitriy Ryazantcev 2023-11-30 21:53:00 +02:00
  • e4582e6edc Sync SDL3 wiki -> header SDL Wiki Bot 2023-11-30 15:22:19 +00:00
  • df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. Ryan C. Gordon 2023-11-30 10:10:04 -05:00
  • 1072b6e86e docs: fixed typo Ryan C. Gordon 2023-11-30 10:08:23 -05:00
  • f184dea16c uikit: Patched to compile. Ryan C. Gordon 2023-11-30 00:27:17 -05:00
  • 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. Ryan C. Gordon 2023-11-30 00:14:27 -05:00
  • 61cd57d378 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. Ryan C. Gordon 2023-11-29 21:38:41 -05:00
  • 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. Ryan C. Gordon 2023-11-29 21:38:41 -05:00
  • d1b831e232 include: Clarified documentation for two functions. Ryan C. Gordon 2023-11-29 15:56:26 -05:00
  • daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. Ryan C. Gordon 2023-11-29 13:08:52 -05:00
  • dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. Ryan C. Gordon 2023-11-29 11:15:48 -05:00
  • dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. Ryan C. Gordon 2023-11-25 22:41:23 -05:00
  • eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. Ryan C. Gordon 2023-11-29 12:31:27 -05:00
  • f32575dfab docs: Convert everything to Unix-style endlines. Ryan C. Gordon 2023-11-29 11:19:31 -05:00
  • c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. Ryan C. Gordon 2023-11-29 10:33:31 -05:00
  • df05d5eff4 Fix scroll wheel handling in testmouse Cameron Cawley 2023-11-28 22:15:18 +00:00
  • 0134672345 cmake: copy sources to binary directory in separate target Anonymous Maarten 2023-11-28 23:03:30 +01:00
  • 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl Ozkan Sezer 2023-11-29 00:39:24 +03:00
  • fea6e7afb1 cmake: copy sources to binary directory in separate target Anonymous Maarten 2023-11-28 18:49:01 +01:00
  • 9faa7977bd UWP: Add support for supplementary Unicode characters input Dimitriy Ryazantcev 2023-11-27 17:23:17 +02:00
  • 7b628ea4d5 Win32: Simplify Unicode text input code Dimitriy Ryazantcev 2023-11-27 16:15:24 +02:00
  • 8f14dc6998 Corrected comment Sam Lantinga 2023-11-22 10:35:15 -08:00
  • 3381828cc6 Fix 3DS Analog Values (#8581) zoeyjodon 2023-11-22 13:34:01 -05:00
  • 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) Sam Lantinga 2023-11-28 12:20:43 -08:00
  • be0e303ec8 document the purpose of SDL_SetTextInputRect shenleban tongying 2023-11-28 15:00:04 -05:00
  • 3e6513c773 document the purpose of SDL_SetTextInputRect shenleban tongying 2023-11-28 15:00:04 -05:00
  • 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() Sam Lantinga 2023-11-28 11:38:35 -08:00
  • 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard Dimitriy Ryazantcev 2023-11-28 20:23:57 +02:00
  • 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping Dimitriy Ryazantcev 2023-11-27 16:11:20 +02:00
  • acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes Dimitriy Ryazantcev 2023-11-21 14:07:18 +02:00
  • 6b28065e9e Reformat Win32 scan code table Dimitriy Ryazantcev 2023-11-27 14:27:51 +02:00