atfrase
db9e14e504
disabled linux joystick debugging outputs and reverted unnecessary comment edit
2022-05-03 10:44:09 -07:00
atfrase
3696e23d09
added hints SDL_HINT_LINUX_DIGITAL_HATS and SDL_HINT_LINUX_HAT_DEADZONES to control the new Linux hat handling; added define DEBUG_GAMEPAD_MAPPINGS to log messages when generating default gamepad mapings for Linux joysticks
2022-05-03 10:44:09 -07:00
Michael Fitzmayer
fbd230bb6c
Add support for the Nokia N-Gage ( #5597 )
...
* Add initial support for the Nokia N-Gage
* N-Gage: disable clipping for the time being, issue needs to be resolved later
* Move va_copy definition to SDL_internal.h
* Move stdlib.h include to SDL_config_ngage.h, much cleaner this way
* Remove redundant include, add HAVE_STDLIB_H
* Revert "N-Gage: disable clipping for the time being, issue needs to be resolved later"
This reverts commit 4f5f0fc36cc7f34fad05e45671dfa7b8dc32fd51.
* N-Gage: fix clipping issue by providing proper math functions
2022-05-03 08:51:49 -07:00
Susko3
6150245d65
Add new verbosity level for logging of `SDL_SysWMEvent`s
...
Now logged only if SDL_HINT_EVENT_LOGGING is set to "3" or above.
2022-05-02 15:33:13 -07:00
Sam Lantinga
829f6b3d7d
These headers are system headers, not local headers
2022-04-30 11:33:03 -07:00
Sam Lantinga
f81419702e
Document that SDL_MAX_LOG_MESSAGE is no longer meaningful
2022-04-29 11:28:59 -07:00
Ryan C. Gordon
7d7ec9c951
x11: Remove XVidMode and Xinerama support.
...
Fixes #1782 .
2022-04-26 23:17:13 -04:00
Sam Lantinga
e551384a99
Added functions to get the platform dependent name for a joystick or game controller
2022-04-26 14:54:14 -07:00
Ozkan Sezer
e9ff4fdd49
add SDL_bsearch
2022-04-26 04:03:25 +03:00
meyraud705
3dcfe86082
Add joystick battery event
2022-04-25 15:46:17 -07:00
Sam Lantinga
fa29e2d7f7
Updated to version 2.0.23 for development
2022-04-25 13:45:51 -07:00
Eddy Jansson
0288de8529
SDL_Rect: Add \sa documentation block to SDL_FRect
2022-04-22 12:09:13 -04:00
Eddy Jansson
fc944859d1
SDL_Rect: Use a default epsilon in SDL_FRectEquals()
...
Add SDL_FRectEqualsEpsilon() for when more control over
equality test is required.
2022-04-20 08:38:53 -07:00
Eddy Jansson
00feca27b0
Add SDL_FLT_EPSILON.
2022-04-20 08:38:53 -07:00
Ethan Lee
c37090f9a4
wayland: Add support for TOOLTIP/POPUP_MENU
2022-04-18 12:31:02 -04:00
Ryan C. Gordon
c1336b21ed
hints: Make SDL_VIDEODRIVER and SDL_AUDIODRIVER formal hints.
...
They were just environment variables before.
Fixes #5528 .
2022-04-17 11:31:55 -07:00
David Gow
9c2f46b0d5
Wayland: Add SDL_HINT_VIDEO_WAYLAND_PREFER_LIBDECOR
...
This hint allows libdecor to be used even when xdg-decoration is
available. It's mostly useful for debugging libdecor, but could in
theory be used by applications which want to (for example) bundle their
own libdecor plugins.
2022-04-12 11:52:41 -04:00
Sam Lantinga
505d6a4a05
Update version to 2.0.22 for release
2022-04-08 18:18:56 -07:00
Sam Lantinga
6d7d142b70
Fixed typo
2022-04-08 18:10:38 -07:00
Connor Clark
6dbca7c911
Compile with recursive mutexes for emscripten
...
Emscripten actually does support recursive mutexes, so no need to use SDL's fake recursive code.
Background: #5428 , #5479
2022-04-06 18:51:35 -07:00
Ozkan Sezer
c0bb39e5e9
check for HAVE_ROAPI_H in cmake and autotools, and
...
update SDL_config_windows.h and SDL_config_winrt.h
2022-04-02 02:50:02 +03:00
Jaylon Gowie
8c542a3591
Desktop OpenGL 1.X/2.X PSVita Support
2022-03-31 00:02:56 -04:00
Ryan C. Gordon
3425e9950e
stdinc: SDL_COMPILE_TIME_ASSERT defines shouldn't have a semicolon.
2022-03-30 10:13:47 -04:00
Ivan Epifanov
96be9cddcc
Vita: add hint to select which touchpad generates mouse events
2022-03-28 08:36:32 -07:00
Cameron Gutman
a60986caa8
Correct default structure packing on Windows ARM64
...
See issue #5454 for details
2022-03-27 19:03:54 -05:00
SDL Wiki Bot
6d1c3cd691
Sync wiki -> header
2022-03-27 17:11:05 +00:00
SDL Wiki Bot
2591f7e39c
Sync wiki -> header
2022-03-27 16:52:04 +00:00
SDL Wiki Bot
7ba4d24c25
Sync wiki -> header
2022-03-27 16:49:05 +00:00
Ryan C. Gordon
7bc498d325
direct3d: Implement missing blend operations.
...
This is only for Direct3D 9; Direct3D 11 already had this implemented.
Fixes #5375 .
2022-03-27 09:14:07 -04:00
SDL Wiki Bot
2a4e0f8fd0
Sync wiki -> header
2022-03-23 16:09:05 +00:00
Sylvain Becker
c23a7ad38a
Add SDL_RenderGetWindow() API to get the window associated with a renderer ( #5440 )
...
Add SDL_RenderGetWindow() API to get the window associated with a renderer
2022-03-23 17:07:56 +01:00
Ryan C. Gordon
f782abe5f0
hints: Added SDL_HINT_QUIT_ON_LAST_WINDOW_CLOSE.
...
Fixes #2349 .
2022-03-22 09:54:29 -04:00
Ryan C. Gordon
2b3c16eb5b
Sync wiki -> headers.
2022-03-20 23:17:14 -04:00
Ryan C. Gordon
d81fee7623
SDL_Rect: Added floating point versions of all the rectangle APIs.
...
Fixes #5110 .
2022-03-19 10:35:24 -04:00
SDL Wiki Bot
aef1e56737
Sync wiki -> header
2022-03-18 17:30:05 +00:00
Sam Lantinga
40b7326b38
Added a note that SDL_RenderReadPixels() should be called before SDL_RenderPresent()
2022-03-18 10:28:38 -07:00
Sam Lantinga
6c96217727
Added the hint SDL_HINT_MOUSE_RELATIVE_MODE_CENTER, controlling whether the mouse should be constrained to the center of the window or the whole window in relative mode.
...
For further info about the pros and cons, check out the discussion in https://github.com/libsdl-org/SDL/issues/5271
2022-03-18 10:07:59 -07:00
Sam Lantinga
5ff42438e3
Added a hint to capture the mouse when mouse buttons are pressed, defaulting on
...
Fixes https://github.com/libsdl-org/SDL/issues/5301
2022-03-17 17:39:46 -07:00
Sam Lantinga
e5f45455c9
Added a hint to mark a foreign window as usable with OpenGL
...
Fixes https://github.com/libsdl-org/SDL/issues/2942
2022-03-17 14:44:34 -07:00
Ethan Lee
0bf8ccfb60
video: Add a hint to allow Vulkan surfaces on foreign windows
2022-03-17 14:25:55 -07:00
Ozkan Sezer
f0d2747df1
use _Static_assert for SDL_COMPILE_TIME_ASSERT(), when available
2022-03-17 08:43:27 -07:00
Ozkan Sezer
ecc1c871e6
SDL_endian.h: use endian predefs from newer gcc and clang versions.
...
Closes: https://github.com/libsdl-org/SDL/pull/5403
2022-03-14 10:10:40 +03:00
SDL Wiki Bot
229297d97f
Sync wiki -> header
2022-03-11 22:47:04 +00:00
Zach Reedy
d14a126383
IME Composition Truncation + SDL_IsTextInputShown + SDL_ClearComposition ( #5398 )
...
* Fixes for IME Composition Truncation + Addition of SDL_ClearComposition, SDL_IsTextInputShown
* Fixed: Documentation and code style issues raised during code review.
2022-03-11 14:45:17 -08:00
SDL Wiki Bot
232c3556ac
Sync wiki -> header
2022-03-04 17:30:05 +00:00
Sam Lantinga
ae73ea9c07
Clarified documentation for the trigger rumble API
...
Fixes https://github.com/libsdl-org/SDL/issues/5372
2022-03-04 09:27:46 -08:00
SDL Wiki Bot
669a7f8552
Sync wiki -> header
2022-02-23 16:18:05 +00:00
Phillip Stephens
94d43186f2
GameCubeAdapter: Add suppport for all rumble modes
...
This adds support for all 3 of the gamecube controller's rumble modes
Rumble: 1
Stop: 0
StopHard: 2
This is useful for applications that need the full range of support
This also adds a hint to control rumble behavior, defaults 0 to maintain compatibility
2022-02-23 07:03:02 -08:00
Sam Lantinga
18032979d8
Added the hint SDL_HINT_JOYSTICK_ROG_CHAKRAM to control whether ROG Chakram mice show up as joysticks
...
This hint defaults off, but when it is enabled the mice will have a game controller mapping set up for Profile 3 (set in the Armoury Crate software)
2022-02-15 13:07:51 -08:00
Ozkan Sezer
67f12ede3b
move bug #5333 fix to headers
2022-02-08 21:32:50 +03:00
SDL Wiki Bot
580d231822
Sync wiki -> header
2022-02-08 10:37:04 +00:00
Sylvain
34d4f5b14e
Fixed bug #2032 : add SDL_GetTouchName to expose the driver name of the device (Thanks @mgerhardy!)
2022-02-08 11:32:20 +01:00
Ozkan Sezer
050a5e1a15
removed unused SDL_config_wiz.h
2022-02-04 20:02:20 +03:00
Francisco Javier Trujillo Mata
daea9fa19e
Remove SDL_config_psp and references
2022-02-02 08:36:39 -05:00
SDL Wiki Bot
e1cf8d8748
Sync wiki -> header
2022-02-01 16:58:05 +00:00
SDL Wiki Bot
4fa21dd65b
Sync wiki -> header
2022-02-01 10:37:05 +00:00
Sylvain
d46cc18afc
Fix function comment
2022-02-01 11:35:26 +01:00
SDL Wiki Bot
61b6a2cad4
Sync wiki -> header
2022-02-01 10:33:04 +00:00
Sylvain
fe2ed6cf6f
Fixed bug #5221 - Add SDL_AndroidSendMessage()
2022-02-01 11:30:43 +01:00
pionere
3939ef72f8
cleanup SDL_GetAudioDeviceSpec
...
- drop unnecessary hascapture check
- call SDL_InvalidParamError and return -1 in case the index is out of range
- do not zfill SDL_AudioSpec
- adjust documentation to reflect the behavior
2022-01-28 20:40:19 -05:00
pionere
014e2bbdb2
use SDL_COMPILE_TIME_ASSERT instead of SDL_STATIC_ASSERT
2022-01-28 20:40:19 -05:00
pionere
65e9415b98
sync handling of subsystems
...
- add DUMMY-define in case the subsystem is enabled but not available (filesystem/misc/locale)
- add missing PSP/VITA-filesystem defines
- sync the order of filesystems in SDL_config.h.cmake/in
- add option to disable locale subsystem in configure
2022-01-28 20:40:19 -05:00
pionere
998117b3ff
add 'Misc' subsystem
2022-01-28 20:40:19 -05:00
pionere
942b01a54c
do not use RWOps in WIN_SetWindowIcon
2022-01-28 20:40:19 -05:00
pionere
739f350f45
add SDL_LOCALE_DISABLED to SDL_config.h
2022-01-28 20:40:19 -05:00
ulatekh
57bc90403e
Add hint to optionally forcibly raise the window under MS Windows.
2022-01-24 11:10:57 -08:00
Sam Lantinga
a0e3c884d4
Updated to version 2.0.21 for development
2022-01-17 15:32:27 -08:00
Ryan C. Gordon
42302d0a59
x11: Let apps specify a custom _NET_WM_WINDOW_TYPE.
...
Fixes #5185 .
2022-01-11 21:17:21 -05:00
SDL Wiki Bot
b424665e08
Sync wiki -> header
2022-01-10 20:40:05 +00:00
SDL Wiki Bot
5e3f4ccc34
Sync wiki -> header
2022-01-10 20:35:04 +00:00
Ozkan Sezer
f14c7bb443
added missing hidapi stuff for os/2 with libusb
2022-01-09 20:33:32 +03:00
Sam Lantinga
09ece861d1
Added the hint SDL_HINT_RENDER_LINE_METHOD to select the line rendering method
2022-01-08 11:36:52 -08:00
Ozkan Sezer
21914b4e2f
updated Makefile.psp and SDL_config_psp.h
2022-01-08 11:55:10 +03:00
Sam Lantinga
9294634840
Updated to version 2.0.20 for release
2022-01-07 18:29:40 -08:00
Sam Lantinga
4b38d4c96b
Leave the Metal view active on the window when recreating the Metal renderer
...
Fixes https://github.com/libsdl-org/SDL/issues/5140
Also move the metal tag definition to SDL_syswm.h so it can be used by applications
2022-01-07 12:38:45 -08:00
Ozkan Sezer
75ac944b9c
check for tpcshrd.h and define HAVE_TPCSHRD_H if it's available.
2022-01-06 22:24:00 +03:00
Sam Lantinga
120c76c84b
Updated copyright for 2022
2022-01-03 09:40:21 -08:00
Francisco Javier Trujillo Mata
13a9cd4797
Adding sysfilesystem driver to PSP
2022-01-02 08:06:04 -08:00
Alex Szpakowski
7f5339e6c4
Document the packed integer formats SDL_Color is bit-compatible with.
2021-12-14 12:19:16 -08:00
Sam Lantinga
086c74556d
Fixed build warning on iOS
2021-12-14 12:08:36 -08:00
Sylvain
b7885abc44
Fixed bug #5087 : SDL_RenderGeometryRaw() passes colors as int* instead of SDL_Color*
2021-12-14 10:31:55 +01:00
Ozkan Sezer
8d14e6ea44
replaced use of _MAX_PATH with CCHMAXPATH in os/2 code,
...
it now compiles without HAVE_LIBC
2021-12-08 14:01:02 +03:00
Wouter Wijsman
da5dbb4763
Fix SDL2main on PSP ( #5076 )
...
- Fix SDL2main on PSP
SDL2main was not working for PSP, because it wasn't being activated and
it wasn't unsetting the main. Besides that a debug screen being started
was causing issues with joystick input and the sceKernelExitGame calli
is no longer needed with the current PSPDEV SDK.
- Clean up imports in PSP main
- Set PSP GPU and user modes in main
- Fix exit callback in PSP main
2021-12-07 18:43:50 +03:00
Wouter Wijsman
897c7cfa8b
Make sure SDL_VIDEO_RENDER_PSP is set
2021-12-07 14:03:00 +03:00
Wouter Wijsman
21fd0047e3
Initial for building PSP version with CMake
2021-12-07 14:03:00 +03:00
Ozkan Sezer
70c5e91d0f
os/2 optionally builds against libiconv.
2021-12-01 01:20:10 +03:00
Sam Lantinga
5fc901d4f3
Updated to version 2.0.19 for development
2021-11-30 09:58:21 -08:00
Sam Lantinga
976328bb0f
Fixed ABI break in SDL test header
2021-11-28 08:54:18 -08:00
Sam Lantinga
110e4e1334
Use WGI instead of XInput for Windows 10 UWP apps
...
Fixes https://github.com/libsdl-org/SDL/issues/5017
2021-11-27 10:24:32 -08:00
Ozkan Sezer
5a0ea7fb17
Check for O_CLOEXEC definition in fcntl.h at configuration time,
...
If not available, define it internally as 0 (in SDL_internal.h).
Define it as available for macOS >= 10.7 in SDL_config_macosx.h.
2021-11-27 19:23:10 +03:00
Sam Lantinga
7242075b2b
Updated version to 2.0.18 for release
2021-11-26 08:12:45 -08:00
Ozkan Sezer
eb39e20588
SDL_endian.h: remove aarch64 asm.
...
The asm has been reported broken in at least optimized Apple M1 builds;
and besides, the compiler builtins have precedence over the asm anyway.
Closes https://github.com/libsdl-org/SDL/issues/3943
2021-11-25 17:00:50 +03:00
Ozkan Sezer
53aa8eec5f
minor cleanup for watcom _inline keyword.
2021-11-25 17:00:24 +03:00
SDL Wiki Bot
3c71f8939b
Sync wiki -> header
2021-11-25 13:53:04 +00:00
Cameron Gutman
57520cbde6
Improve documentation for input grabbing functions
2021-11-25 16:49:57 +03:00
Ozkan Sezer
f8900583e5
removed windows winmm joystick driver
2021-11-23 17:04:40 +03:00
Sylvain
e5467af7c8
Minor change comment
2021-11-23 09:42:07 +01:00
Sam Lantinga
c97b721868
Added SDL_PremultiplyAlpha() to premultiply alpha on a block of SDL_PIXELFORMAT_ARGB8888 pixels
2021-11-21 12:18:10 -08:00
Ryan C. Gordon
aeff8748a5
configure: Allow building of the "offscreen" video target.
...
It was CMake-only before this.
2021-11-20 13:35:56 -05:00
Ozkan Sezer
990fb668f7
tests: several -Wwrite-strings fixes.
2021-11-20 01:02:02 +03:00