Ryan C. Gordon
de6d0ac55a
uikit: Patched to compile on older iOS SDKs.
2020-11-08 18:11:42 -05:00
Ryan C. Gordon
93a2c58c7e
opengl: Use GL_LINE_STRIP instead of breaking down into seperate GL_LINES.
...
Surely GL drivers have improved in the last seven years. I hope...?
2020-11-08 12:37:09 -05:00
Sylvain Becker
b198febb62
Documentation: fix minor gamecontroller parameter warning
2020-11-08 10:22:27 +01:00
Ryan C. Gordon
731a5d1c53
metal: Fix line drawing, again.
2020-11-08 03:18:05 -05:00
Sam Lantinga
4ea1a10bd2
Added stub controller LED functions for WGI and RAWINPUT (thanks meyraud!)
2020-11-07 02:49:22 -08:00
Sam Lantinga
009b62f1c2
Be explicit about mapping the new game controller paddle buttons
2020-11-07 02:22:15 -08:00
Sam Lantinga
3a4388489a
Document the Xbox One Elite paddle buttons
2020-11-06 17:06:41 -08:00
Sam Lantinga
749062e72b
Implemented SDL_GameControllerSetLED() for iOS/tvOS
2020-11-06 16:53:13 -08:00
Sam Lantinga
faeac6e86c
Added additional game controller button support on iOS/tvOS
2020-11-06 16:42:46 -08:00
Sam Lantinga
cf8d3befe6
Added iOS controllermap test
2020-11-06 16:01:43 -08:00
Sam Lantinga
5a92edee03
Don't try to map the accelerometer as a game controller
2020-11-06 15:54:18 -08:00
Sam Lantinga
d5e367a466
Fixed build so CoreBluetooth framework is only needed by hidapi
...
Also added plist keys for Bluetooth permission so testgamecontroller works with HIDAPI enabled
2020-11-06 14:45:36 -08:00
Sam Lantinga
59a644fb01
iOS should use the same size window for the controller tests as other platforms
...
Otherwise the position of the button and axis elements won't be correct
2020-11-06 14:44:26 -08:00
Sam Lantinga
fbf0484a17
Embed the hidapi framework for the iOS and tvOS game controller test
2020-11-06 14:08:11 -08:00
Sam Lantinga
9a446aa92e
Note that SDL_CONTROLLER_BUTTON_AUX1 is sent for the PS4/PS5 touchpad button on the HIDAPI driver.
2020-11-06 13:55:51 -08:00
Sam Lantinga
1bd4b7fdf1
Updated iOS tests and demos for latest SDL linking requirements
2020-11-06 13:03:07 -08:00
Sam Lantinga
e87fbb1aa7
Removed old iOS-only project and demos
2020-11-06 11:33:49 -08:00
Sam Lantinga
dc60b975f3
Removed old iOS-only project and demos
2020-11-06 11:32:59 -08:00
Sam Lantinga
3a3aaac221
Added 4 auxiliary buttons to the game controller API
...
Xbox Elite controllers use AUX1-AUX4 to represent the paddle buttons when using the HIDAPI driver
PS4 and PS5 controllers use AUX1 to represent the touchpad button
Nintendo Switch Pro controllers use AUX1 to represent the capture button
2020-11-06 11:30:52 -08:00
Sam Lantinga
a22beef402
Moved the PS5 controller driver to a separate file, as the advanced feature protocol is very different from that of the PS4
2020-11-05 17:03:28 -08:00
Sam Lantinga
bd2dd3f6bb
Added Android mapping for the Sony PS5 Controller
2020-11-05 15:36:15 -08:00
Sam Lantinga
4d79f9662f
Added initial support for the Sony PS5 Controller
2020-11-05 15:02:54 -08:00
Sam Lantinga
e555d45331
Added SDL_JoystickHasLED
...
Currently, this is only supported by the PS4 HIDAPI driver.
2020-11-05 11:07:54 -08:00
Ethan Lee
83cddd2ebc
Add SDL_JoystickSetLED.
...
Currently, this is only supported by the PS4 HIDAPI driver.
2020-04-30 11:57:29 -04:00
Ryan C. Gordon
1b8dee7caf
coreaudio: Remove unnecessary include of CoreServices.h
2020-10-31 11:32:40 -04:00
Ozkan Sezer
79221e85a0
SDL_stdinc.h: define _DARWIN_C_SOURCE on macOS for memset_pattern4()
...
hopefully fixes https://bugzilla.libsdl.org/show_bug.cgi?id=5107
2020-10-29 20:00:20 +03:00
Sylvain Becker
311ae829c7
Android: keep compatibility with older JDK
2020-10-28 14:03:05 +01:00
Sylvain Becker
97cf314526
Android: apply code simplications found with lint / Android Studio
2020-10-27 21:14:49 +01:00
Sam Lantinga
ddc0727bba
Fixed implicit memcpy() when building for ARM64 on Windows (thanks Seigo!)
2020-10-27 09:00:42 -07:00
Ryan C. Gordon
010d5fba93
kmsdrm: Make this build with significantly older system libraries.
...
This allows one to build Raspberry Pi versions on an ancient version of
Raspbian and get both the KMSDRM and RPI video targets built into SDL, giving
maximum binary compatibility from linking against an older glibc, etc, but
also making one library that can access video on all RPi models and OS
releases.
2020-10-26 09:49:09 -04:00
Ozkan Sezer
f0c5841714
SDL_shape_internals.h: forward-declare struct SDL_ShapeTree.
2020-10-25 10:10:10 +03:00
Ozkan Sezer
a4040293dd
os2: misc build fixes
2020-10-25 10:10:02 +03:00
Ozkan Sezer
bfc80d83c2
minor coding style cleanup
2020-10-25 03:55:02 +03:00
Ryan C. Gordon
ba36eb0437
metal: Make line drawing match software renderer.
...
Partially fixes Bugzilla #2711 .
2020-10-21 00:03:33 -04:00
Ryan C. Gordon
c33f808354
render: Restoring line rendering fixes that were previously put on hold.
...
(Backed out hg changeset 7a4240daba46)
2020-10-20 11:12:49 -04:00
Sylvain Becker
0360987f45
Android: fix deprecated onCreateDialog() methods
2020-10-24 20:31:04 +02:00
Sam Lantinga
5dc6c3c951
Updated Vulkan headers to version 1.2.158
...
https://github.com/KhronosGroup/Vulkan-Headers
2020-10-24 10:46:18 -07:00
Ozkan Sezer
fbbc4ab33b
os2: can build with libsamplerate support if wanted to.
2020-10-24 20:12:50 +03:00
Sylvain Becker
967041681b
Android: fix Clipboard deprecated methods
2020-10-24 15:36:05 +02:00
Manuel Alfayate Corchete
5682b066e9
kmsdrm: Add comment about KMSDRM_VideoQuit() changes.
2020-10-22 19:51:57 +02:00
Manuel Alfayate Corchete
63b7827709
kmsdrm: properly exit with an error when ATOMIC interface is not yet available, instead of just segfaulting.
2020-10-22 19:44:38 +02:00
Manuel Alfayate Corchete
a3262205b5
kmsdrm: rearrange init function so we try ATOMIC compatibility first.
2020-10-22 17:55:45 +02:00
Manuel Alfayate Corchete
b1ea0be865
kmsdrm: Add missing checks after SDL_calloc() calls.
2020-10-22 17:06:34 +02:00
Manuel Alfayate Corchete
ad9ec8b363
kmsdrm: Small fix, missing bracket.
2020-10-22 16:15:34 +02:00
Manuel Alfayate Corchete
87a86675ed
kmsdrm: Always use spaces for indentation. Always use SDL_calloc() for calloc.
2020-10-22 16:01:51 +02:00
Ozkan Sezer
cfc1362011
os2 video: updates to my_gradd.h
2020-10-21 23:28:02 +03:00
Sam Lantinga
f1b603ac6a
Fixed bug 5323 - SDL_SetWindowMaximumSize fails if Width or Height is equal to minimum Height or Width
...
batyastudios
Basicly there is problem and somewhat a solution: https://discourse.libsdl.org/t/setwindowmaximumsize-bug/28267
If you SDL_SetWindowMaximumSize() after SDL_SetWindowMinimumSize() with one of axes have the same value, function will have no effect.
This: (line 2144@SDL_video.c)
if (max_w <= window->min_w || max_h <= window->min_h) {
SDL_SetError("SDL_SetWindowMaximumSize(): Tried to set maximum size smaller than minimum size");
return;
}
May be changed to this:
if (max_w < window->min_w || max_h < window->min_h) {
SDL_SetError("SDL_SetWindowMaximumSize(): Tried to set maximum size smaller than minimum size");
return;
}
2020-10-20 11:51:23 -07:00
Ozkan Sezer
cbadd1e380
geniconv/os2iconv.c: make it build correctly against os2tk headers.
2020-10-20 20:32:20 +03:00
Manuel V?gele
554037a6f7
audio: fix popping sounds caused by signed/unsigned conversion
...
When converting audio from signed to unsigned values of vice-versa
the silence value chosen by SDL was the value of the device, not
of the stream that the data was being put into. After conversion
this would lead to a very high or low value, making the speaker
jump to a extreme positon, leading to an audible noise whenever
creating, destroying or playing scilence on a device that reqired
such conversion.
2020-09-26 09:30:08 +02:00
Sam Lantinga
f311e0a826
Removed debug log message
2020-10-19 17:29:16 -07:00