Ash Logan
dd77800d1c
include: Add extra checks for endian on devkitPPC
2019-04-29 22:55:55 +10:00
rw-r-r-0644
94a46ebb35
wiiu: Switch to cmake
2019-04-29 22:55:55 +10:00
rw-r-r-0644
463b9e07e4
wiiu: Updates for newer SDL
2019-04-29 22:55:55 +10:00
rw-r-r-0644
37f2ef8682
wiiu: Edit config comment to prevent gcc warning
2019-04-29 22:55:55 +10:00
Ash
57639657db
render: Start compiling the wiiu renderer (lotsa errors)
2019-04-29 22:55:55 +10:00
Ash
bfb51a0f00
audio: Add *very* early wiiu audio support
2019-04-29 22:55:54 +10:00
rw-r-r-0644
a910c0765a
wiiu: explicitly set endianess in config (thanks @quarktheawesome) [needed for missing defines in toolchain]
2019-04-29 22:55:54 +10:00
rw-r-r-0644
89a16883a7
wiiu: enable thread support and stop building generic thread impl
2019-04-29 22:55:54 +10:00
rw-r-r-0644
572c0e4021
Initial support for Nintendo WiiU
2019-04-29 22:55:53 +10:00
Sam Lantinga
e6472f3cb3
Don't build SDL_JOYSTICK_HIDAPI by default on iOS
...
If you enable this, you'll need to link with CoreBluetooth.framework and add something like this to your Info.plist:
<key>NSBluetoothPeripheralUsageDescription</key>
<string>MyApp would like to remain connected to nearby bluetooth Game Controllers and Game Pads even when you're not using the app.</string>
2018-10-26 09:27:31 -07:00
Sam Lantinga
da9d1fdad4
Generalized the XInput user index into a player index
2018-10-25 16:53:14 -07:00
Sam Lantinga
e8f3a27057
Added SDL_JoystickGetXInputUserIndex()
2018-10-25 12:54:42 -07:00
Ozkan Sezer
f311b08642
SDL_power.c: Adjust SDL_POWER_DISABLED ifdefs to avoid zero-size array
...
Otherwise if SDL_POWER_DISABLED is disabled (eg with --disable-power):
... with clang -pedantic:
src/power/SDL_power.c:48:50: warning: use of GNU empty initializer extension [-Wgnu-empty-initializer]
static SDL_GetPowerInfo_Impl implementations[] = {
^
src/power/SDL_power.c:48:50: warning: zero size arrays are an extension [-Wzero-length-array]
2 warnings generated.
... with gcc -pedantic:
src/power/SDL_power.c:48:50: warning: ISO C forbids empty initializer braces [-Wpedantic]
src/power/SDL_power.c:48:50: warning: ISO C forbids empty initializer braces [-Wpedantic]
static SDL_GetPowerInfo_Impl implementations[] = {
^
src/power/SDL_power.c:48:30: error: zero or negative size array ‘implementations’
static SDL_GetPowerInfo_Impl implementations[] = {
^~~~~~~~~~~~~~~
... with Watcom:
./src/power/SDL_power.c(85): Error! E1112: Initializer list cannot be empty
2018-10-15 11:01:00 +03:00
Ozkan Sezer
663a27c57c
add a minimal config and makefile to test watcom/os2 builds.
2018-10-14 23:56:56 +03:00
Ozkan Sezer
6ab66823e3
SDL_thread.h: undefine SDL_CreateThreadWithStackSize before redefining.
2018-10-12 01:03:40 +03:00
Ryan C. Gordon
0ba20a58d2
thread: make SDL_CreateThreadWithStackSize() a public API.
2018-10-11 16:40:01 -04:00
Sam Lantinga
f8a899b9ab
Update documentation to note that this hint works on Android too (thanks Trent!)
2018-10-03 15:48:26 -07:00
Sam Lantinga
44070e739d
commit c6b28f46b8116552ec2b38d1d3c8535df28ba7a1
...
Author: Anthony Pesch <inolen@gmail.com>
Date: Fri May 4 20:21:21 2018 -0400
Added SDL_AUDIO_ALLOW_SAMPLES_CHANGE flag enabling users of SDL_OpenAudioDevice to get
the sample size of the actual hardware buffer vs having a stream created to handle the
delta
2018-10-01 09:47:10 -07:00
Ethan Lee
258371154f
Fix Linux haptic scaling, add 2.1 FIXME
2018-05-04 21:58:39 -04:00
Ozkan Sezer
e2590c813a
configury, cmake: add check for endpointvolume.h :
...
add HAVE_ENDPOINTVOLUME_H, HAVE_MMDEVICEAPI_H and HAVE_AUDIOCLIENT_H
in SDL_config.h.in, SDL_config.h.cmake, SDL_config_windows.h, and in
SDL_config_winrt.h.
2018-09-28 13:41:04 +03:00
Sam Lantinga
f1173c73cb
Fixed bug 4277 - warnings patch
...
Sylvain
Patch a few warnings when using:
-Wmissing-prototypes -Wdocumentation -Wdocumentation-unknown-command
They are automatically enabled with -Wall
2018-09-27 14:56:29 -07:00
Sam Lantinga
8f20146d89
Updated version to 2.0.9
2018-09-26 10:08:14 -07:00
Sam Lantinga
2a05f4681b
Fixed bug 4264 - SDL_CreateTextureFromSurface generates error message but returns ok
...
Anthony @ POW Games
SDL_CreateTextureFromSurface makes an internal call to SDL_GetColorKey which can return an error and spams the error log with "Surface doesn't have a colorkey" even though the original function didn't return an error.
2018-09-24 16:41:55 -07:00
Sam Lantinga
75f396a107
Added hints SDL_HINT_MOUSE_DOUBLE_CLICK_TIME and SDL_HINT_MOUSE_DOUBLE_CLICK_RADIUS to allow tuning double-click sensitivity.
...
Also increased the default double-click radius to 32 pixels to be more forgiving for touch interfaces
2018-09-14 19:26:26 -07:00
Ozkan Sezer
3918965ae9
SDL_sensor.h, SDL_video.h: remove comma at end of enumerator lists.
...
Avoids gcc -pedantic warnings, closes bug #4253 .
2018-09-07 10:47:50 +03:00
Ryan C. Gordon
3ac049e49c
Fixed a comment typo.
2018-09-05 21:24:13 -04:00
Sam Lantinga
f3e84167ad
Don't rumble Bluetooth PS4 controllers by default, as that switches the controller into extended input report mode, which breaks games that use DirectInput.
2018-08-29 20:23:39 -07:00
Jeremy Ong
1bb7162872
vulkan: SDL_Vulkan_GetInstanceExtensions should accept a NULL window.
...
Fixes Bugzilla #4235 .
2018-08-24 09:49:48 -04:00
Sam Lantinga
c6e6ed6258
Added documentation for additional Android sensors
2018-08-23 10:51:54 -07:00
Sam Lantinga
2d69f1cbf5
Added SDL_GetDisplayOrientation() to get the display orientation, and added a new event SDL_DISPLAYEVENT to notify the application when the orientation changes.
...
Documented the values returned by the accelerometer and gyroscope sensors
2018-08-22 21:48:28 -07:00
Sam Lantinga
06479674fc
Doh.. __IPHONEOS__ is defined on tvOS
2018-08-21 20:38:22 -07:00
Sam Lantinga
5a53712fcc
Don't use CoreMotion on tvOS
2018-08-21 20:34:09 -07:00
Sam Lantinga
9505b76b0d
Moved SDL_IsTablet() to a cross-platform API function
2018-08-21 20:03:54 -07:00
Sam Lantinga
a9118643f8
Added the iOS sensor implementation
2018-08-21 17:24:12 -07:00
Sam Lantinga
30f36e443a
Fixed duplicate definition of SDL_JoystickID
2018-08-21 13:44:11 -07:00
Sam Lantinga
47d7fd9663
Added a dummy sensor driver
2018-08-21 13:29:21 -07:00
Sam Lantinga
6a6db94f54
First pass on the new SDL sensor API
2018-08-21 12:11:34 -07:00
Sam Lantinga
ce26218414
Add SDL_IsTablet() to Android and iOS SDL.
2018-08-21 11:23:47 -07:00
Sam Lantinga
78df4310c2
Use a single hint for both Xbox 360 and Xbox One controllers, since they are often the same driver.
2018-08-15 23:35:54 -07:00
Sam Lantinga
1083673899
Re-enabled the HIDAPI joystick driver on Windows and Mac OS X
2018-08-09 22:53:43 -07:00
Sam Lantinga
d2fff7b1d3
SDL: disable HIDAPI in SDL on Windows/Mac.
2018-08-09 16:03:55 -07:00
Sam Lantinga
a7f26f9e6c
Added HIDAPI joystick drivers for more consistent support for Xbox, PS4 and Nintendo Switch Pro controller support across platforms.
...
Added SDL_GameControllerRumble() and SDL_JoystickRumble() for simple force feedback outside of the SDL haptics API
2018-08-09 16:00:17 -07:00
Ethan Lee
8c5c6c609f
SDL_exp
2018-08-04 11:52:46 -04:00
Sam Lantinga
b5aa40ef52
Allow trapping the back button so right mouse click can work on some Android systems (thanks Rachel!)
...
Also, added a function SDL_AndroidBackButton() so applications can respond to the back button directly
2018-07-12 13:28:13 -07:00
Sam Lantinga
1b23f13ffe
Added support for external mouse in Samsung DeX mode
...
relative mode doesn't work, but absolute coordinates are functional
2018-06-18 13:14:02 -07:00
Sam Lantinga
af2e341ea6
Added SDL_IsChromebook() to determine if we're running on a Chromebook.
2018-06-05 12:46:13 -07:00
Ryan C. Gordon
ab389226cd
audio: Added ARM NEON versions of audio converters.
...
These are _much_ faster than the scalar equivalents on the Raspberry Pi that
I tested on. Often 3x to 4x as fast!
2018-05-16 02:03:06 -04:00
Ryan C. Gordon
cc16ae0ff1
cpuinfo: Added SDL_HasAVX512F().
...
This checks for the "foundation" AVX-512 instructions (that all AVX-512
compatible CPUs support).
2018-05-21 11:35:42 -04:00
Ryan C. Gordon
1cb8828dd4
cpuinfo: Added some internal SIMD-aligned allocation functions.
...
Fixes Bugzilla #4150 (sort of).
2018-05-21 11:34:57 -04:00
Ozkan Sezer
72bf097561
SDL_stdinc.h: move the alloca() includes before begin_code.h
2018-05-10 08:28:00 +03:00