Sam Lantinga
b4c4dd84c2
Added SDL_crc16() to be used in joystick GUIDs after 2.24.0
2022-08-11 09:53:25 -07:00
Sam Lantinga
d4192850c1
Added SDL_ResetHint() to reset a hint to the default value
...
Resolves question of how to clear an override hint raised by @pionere in https://github.com/libsdl-org/SDL/pull/5309
2022-08-10 08:01:24 -07:00
Sam Lantinga
98bac00dcc
Add SDL_GetPointDisplayIndex
and SDL_GetRectDisplayIndex
and re-implement SDL_GetWindowDisplayIndex
in terms of SDL_GetRectDisplayIndex
...
- This allows looking up the display index for an arbitrary location rather than requiring an active window to do so.
- This change also reimplements the fallback display lookup that found the display with center closest to the window's center to instead find the display rect edge
closest to the window center (this was done in the almost identical display lookup used in SDL_windowsmodes.c, which now uses `SDL_GetPointDisplayIndex`). In
practice this should almost never be hit as it requires the window's center to not be enclosed by any display rect.
2022-08-08 11:26:52 -07:00
Ethan Lee
2f0816adb7
Add SDL_GetDefaultAudioInfo.
...
This API is supported on pipewire, pulseaudio, wasapi, and directsound.
Co-authored-by: Frank Praznik <frank.praznik@gmail.com>
2022-07-11 13:34:35 -04:00
Sam Lantinga
2373da5d94
Exposed SDL_ResetKeyboard() as a public function
...
This will be used by Source 2 titles to reset keyboard state before showing assertion dialogs
2022-07-11 09:49:00 -07:00
Sam Lantinga
cbd0187475
Removed the limit on the size of the SDL error message
...
Also added SDL_GetOriginalMemoryFunctions()
Fixes https://github.com/libsdl-org/SDL/issues/5795
2022-06-27 16:59:50 -07:00
chalonverse
3b191580c3
Windows GDK Support ( #5830 )
...
* Added GDK
* Simplfied checks in SDL_config_wingdk.h
* Added testgdk sample
* Added GDK readme
* Fixed error in merge of SDL_windows.h
* Additional GDK fixes
* OpenWatcom should not export _SDL_GDKGetTaskQueue
* Formatting fixes
* Moved initialization code into SDL_GDKRunApp
2022-06-27 10:19:39 -07:00
Ozkan Sezer
51db775442
updated windows watcom exports file after last commit.
2022-06-10 06:23:20 +03:00
chalonverse
4082821822
DirectX 12 Renderer ( #5761 )
...
* DirectX 12 Renderer (27 squashed commits)
* Add missing SDL_hidapi.h of merge of SDL.vcxproj.filters
* Fixed OpenWatcom build failure
* Dynapi fix
Co-authored-by: Ryan C. Gordon <icculus@icculus.org>
2022-06-06 17:42:30 -07:00
Ozkan Sezer
61115aebd3
update dynapi after the loongarch support patch
2022-06-06 19:29:56 +03:00
Christoph Reichenbach
3a20274ddf
Refactoring: move GUID operations out of Joystick
...
- SDL_JoystickGUID -> SDL_GUID (though we retain a type alias)
- Operations for GUID <-> String ops are now in
src/SDL_guid.c and include/SDL_guid.h
- The corresponding Joystick operations delegate to SDL_guid.c
- Added test/testguid.c
2022-06-04 17:22:13 -07:00
Sam Lantinga
423141bfca
Added a function to get the controller firmware version
2022-06-03 18:50:00 -07:00
Cameron Cawley
f0566702c5
Fix enabling SDL_DYNAMIC_API in OpenWatcom builds
2022-05-19 20:11:10 +03:00
Cameron Cawley
3d52d04977
Remove the '_' prefix from symbol names in Windows OpenWatcom builds
2022-05-19 20:11:10 +03:00