Commit Graph

  • e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" Sam Lantinga 2023-12-13 09:45:39 -08:00
  • b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. Sam Lantinga 2023-12-12 23:17:41 -08:00
  • cc6d8eb72b tests: Fix whitespace Frank Praznik 2023-12-12 17:17:00 -05:00
  • a78cdbd7e3 tests: Backport automated video test changes Frank Praznik 2023-12-12 16:04:49 -05:00
  • 33588662ef Refactor away some additional integer types. Max Maisel 2023-09-26 18:31:12 +02:00
  • b620788b4c Add new file to OpenWatcom makefiles. Max Maisel 2023-09-09 08:40:39 +02:00
  • 20cc644833 Add new file to vcxproj files. Max Maisel 2023-09-08 17:09:36 +02:00
  • bed789794d Add new steam deck HIDAPI controller to controller database. Max Maisel 2023-09-07 17:21:08 +02:00
  • 0dbe9022fc Disable lizard mode while steam deck HID device is opened. Max Maisel 2023-09-07 17:20:24 +02:00
  • a6b9d987e9 Translate steam deck HID reports to SDL events. Max Maisel 2023-09-07 17:18:12 +02:00
  • 5718ba253f Implement steam deck HIDAPI initialization. Max Maisel 2023-09-07 17:12:33 +02:00
  • e7f03de468 Add steam deck detection and HIDAPI driver scaffold. Max Maisel 2023-09-07 17:04:01 +02:00
  • 69288038ed Refactor away some additional integer types. Max Maisel 2023-09-26 18:31:12 +02:00
  • f3048e3cd2 Add new file to vcxproj files. Max Maisel 2023-09-08 17:09:36 +02:00
  • 5a21febecb Add new steam deck HIDAPI controller to controller database. Max Maisel 2023-09-07 17:21:08 +02:00
  • 67d44c1017 Disable lizard mode while steam deck HID device is opened. Max Maisel 2023-09-07 17:20:24 +02:00
  • 6dd6827343 Translate steam deck HID reports to SDL events. Max Maisel 2023-09-07 17:18:12 +02:00
  • 94f621e030 Implement steam deck HIDAPI initialization. Max Maisel 2023-09-07 17:12:33 +02:00
  • c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. Max Maisel 2023-09-07 17:04:01 +02:00
  • 0baee3e676 Reversed test to be easier to read, more efficient, and match other code Sam Lantinga 2023-12-12 12:25:51 -08:00
  • bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing Frank Praznik 2023-12-12 14:31:41 -05:00
  • 835c733f4d video: Only sync when programmatically entering/exiting fullscreen Frank Praznik 2023-12-12 12:58:05 -05:00
  • 33843b0933 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe Dimitriy Ryazantcev 2023-12-11 15:19:02 +02:00
  • c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe Dimitriy Ryazantcev 2023-12-11 15:19:02 +02:00
  • 7d94121606 You should call present when using a software renderer as well. Sam Lantinga 2023-12-11 08:43:31 -08:00
  • 581d1cab25 You should call present when using a software renderer as well. Sam Lantinga 2023-12-11 08:43:31 -08:00
  • 79a8e8cf04 Make built-in joystick device lists extendable by using hints Sam Lantinga 2023-12-10 11:27:15 -08:00
  • 5173b0c2cc Make built-in joystick device lists extendable by using hints Sam Lantinga 2023-12-10 11:27:15 -08:00
  • 6526c4d0fc Refactor VIDPID list loading code Sam Lantinga 2023-06-17 08:59:52 -07:00
  • f0e7f3e7e5 Back out Steam virtual gamepad changes Sam Lantinga 2023-12-10 08:38:10 -08:00
  • 34eb24ebc4 Back out Steam virtual gamepad changes Sam Lantinga 2023-12-10 08:35:35 -08:00
  • 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