summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)AuthorFilesLines
2018-12-10Rename _SDL_sensor_h in public header, not to trigger Wreserved-id-macroSylvain Becker1-3/+3
2018-12-07Added the hint SDL_HINT_GAMECONTROLLERCONFIG_FILE to specify a file to load ↵Sam Lantinga1-0/+10
at initialization containing SDL game controller mappings
2018-12-05Warnings: fix a documentation warning and missing prototypesSylvain Becker2-3/+3
2018-12-04Fix comment and end of linesSylvain Becker1-3/+3
2018-12-04Update comment URL of USB document (HID Usage Tables 1.12)Sylvain Becker1-1/+1
2018-12-04Windows: NEON detection and intrinsic includes on Visual StudioSylvain Becker1-2/+16
Visual Studio doesn't define __ARM_ARCH nor _ARM_NEON, but _M_ARM and _M_ARM64, so SDL_HasNEON() was bypassed. PF_ARM_NEON_INSTRUCTIONS_AVAILABLE doesn't see to be defined (but still works when defined as 19).
2018-12-04android: use __ARM_NEON instead of __ARM_NEON__ to include <arm_neon.h>Sylvain Becker1-1/+1
Only __ARM_NEON is defined with Android NDK and arm64-v8a Tested on ndk-r18, ndk-r13 and also Xcode. (Visual Studio needs a different fix). Fixes Bugzilla #4409.
2018-12-01Added some detail to a Doxygen comment (thanks, Sylvain!).Ryan C. Gordon1-6/+6
2018-11-26SDL_touch.h (SDL_TouchDeviceType): remove comma at end of enumerator list.Ozkan Sezer1-1/+1
2018-11-23Added atomics support for armv8-a (Raspberry Pi 3)Sam Lantinga1-1/+1
2018-11-19Fixed bug 4392 - SDL_cpuinfo.h breaks compilation with C bool typeSam Lantinga1-5/+2
Luke Dashjr Bug 3993 was "fixed" by #undef'ing bool. But this breaks C99's stdbool.h bool too. For example, mpv's build fails with: ../audio/out/ao_sdl.c:35:5: error: unknown type name ‘bool’ It seems ill-advised to be #undef'ing *anything* here - what if the code including SDL_cpuinfo.h actually wants to use altivec?
2018-11-19Fixed bug 4391 - hid_enumerate() sometimes causes game to freeze for a few ↵Sam Lantinga1-0/+9
seconds Daniel Gibson Even though my game (dhewm3) doesn't use SDL_INIT_JOYSTICK, SDL_PumpEvent() calls SDL_JoystickUpdate() which ends up calling hid_enumerate() every three seconds, and sometimes on my Win7 box hid_enumerate() takes about 5 seconds, which causes the whole game to freeze for that time.
2018-11-12Fixed bug 4377 - SDL_PIXELFORMAT enum is anonymous, which prevents its use ↵Sam Lantinga1-2/+2
in a templated function zen3d While trying to build Pixie lisp (https://github.com/pixie-lang/pixie), which uses SDL for multimedia output, the mandelbrot example won't build. The problem is that internally pixie uses a templated function to dump a value, and gcc chokes because SDL_PIXELFORMAT_RGA8888 is an anonymous enum. I solved the problem locally by changing from: enum { SDL_PIXELFORMAT_UNKNOWN, ... etc. ... SDL_PIXELFORMAT_YUYV = ... etc ... }; to: typedef enum { SDL_PIXELFORMAT_UNKNOWN, ... etc. ... SDL_PIXELFORMAT_YUYV = ... etc ... } SDL_PIXELFORMAT_ENUM; The net result of this change is that the enum containing SDL_PIXELFORMAT_* is no longer an anonymous enum and can now be used by a templated function. This local change fixes Pixie lisp for me. I did notice that you use the idiom typedef enum { ... etc ... } SDL_FOO; elsewhere in your code, so that change to SDL_PIXELFORMAT doesn't look like it would have a negative impact.
2018-11-10Add SDL_TouchDeviceType enum and SDL_GetTouchDeviceType(SDL_TouchID id).Alex Szpakowski1-0/+13
Touch device types include SDL_TOUCH_DEVICE_DIRECT (a touch screen with window-relative coordinates for touches), SDL_TOUCH_DEVICE_INDIRECT_ABSOLUTE (a trackpad-style device with absolute device coordinates), and SDL_TOUCH_DEVICE_INDIRECT_RELATIVE (a trackpad-style device with screen cursor-relative coordinates). Phone screens are an example of a direct device type. Mac trackpads are the indirect-absolute touch device type. The Apple TV remote is an indirect-relative touch device type.
2018-11-06close_code.h: #error if included without matching begin_code.hOzkan Sezer1-0/+3
2018-11-06fix bug #4362 - SDL_syswm.h with SDL_PROTOTYPES_ONLY broken in C++ modeOzkan Sezer1-2/+5
2018-11-02mir: Removed mir client support.Ryan C. Gordon3-10/+4
Fixes Bugzilla #4288.
2018-10-31Merge SDL-ryan-batching-renderer branch to default.Ryan C. Gordon3-2/+220
2018-10-23render: Add floating point versions of various draw APIs.Ryan C. Gordon2-2/+170
--HG-- branch : SDL-ryan-batching-renderer
2018-10-26Don't build SDL_JOYSTICK_HIDAPI by default on iOSSam Lantinga1-1/+1
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-25Generalized the XInput user index into a player indexSam Lantinga2-5/+20
2018-10-25Added SDL_JoystickGetXInputUserIndex()Sam Lantinga1-0/+5
2018-10-04render: Added SDL_RenderFlush().Ryan C. Gordon1-0/+25
--HG-- branch : SDL-ryan-batching-renderer
2018-09-20render: Move to a batching system for rendering (work in progress).Ryan C. Gordon1-0/+25
--HG-- branch : SDL-ryan-batching-renderer
2018-09-05Fixed a comment typo.Ryan C. Gordon1-1/+1
2018-08-29Don't rumble Bluetooth PS4 controllers by default, as that switches the ↵Sam Lantinga1-0/+15
controller into extended input report mode, which breaks games that use DirectInput.
2018-08-24vulkan: SDL_Vulkan_GetInstanceExtensions should accept a NULL window.Jeremy Ong1-4/+9
Fixes Bugzilla #4235.
2018-08-23Added documentation for additional Android sensorsSam Lantinga1-1/+7
2018-10-15SDL_power.c: Adjust SDL_POWER_DISABLED ifdefs to avoid zero-size arrayOzkan Sezer1-0/+1
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-14add a minimal config and makefile to test watcom/os2 builds.Ozkan Sezer2-1/+172
2018-10-12SDL_thread.h: undefine SDL_CreateThreadWithStackSize before redefining.Ozkan Sezer1-0/+2
2018-10-11thread: make SDL_CreateThreadWithStackSize() a public API.Ryan C. Gordon2-1/+37
2018-10-03Update documentation to note that this hint works on Android too (thanks Trent!)Sam Lantinga1-1/+1
2018-10-01commit c6b28f46b8116552ec2b38d1d3c8535df28ba7a1Sam Lantinga1-1/+2
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-08-22Added SDL_GetDisplayOrientation() to get the display orientation, and added ↵Sam Lantinga3-12/+103
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-21Doh.. __IPHONEOS__ is defined on tvOSSam Lantinga1-3/+3
2018-08-21Don't use CoreMotion on tvOSSam Lantinga1-0/+4
2018-08-21Moved SDL_IsTablet() to a cross-platform API functionSam Lantinga1-9/+5
2018-08-21Added the iOS sensor implementationSam Lantinga1-2/+2
2018-08-21Fixed duplicate definition of SDL_JoystickIDSam Lantinga1-2/+1
2018-08-21Added a dummy sensor driverSam Lantinga10-6/+38
2018-08-21First pass on the new SDL sensor APISam Lantinga4-1/+222
2018-08-21Add SDL_IsTablet() to Android and iOS SDL.Sam Lantinga1-0/+9
2018-08-15Use a single hint for both Xbox 360 and Xbox One controllers, since they are ↵Sam Lantinga1-13/+2
often the same driver.
2018-08-09Re-enabled the HIDAPI joystick driver on Windows and Mac OS XSam Lantinga2-2/+2
2018-08-09SDL: disable HIDAPI in SDL on Windows/Mac.Sam Lantinga2-2/+2
2018-08-09Added HIDAPI joystick drivers for more consistent support for Xbox, PS4 and ↵Sam Lantinga10-7/+117
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-04SDL_expEthan Lee11-0/+21
2018-07-12Allow trapping the back button so right mouse click can work on some Android ↵Sam Lantinga2-0/+22
systems (thanks Rachel!) Also, added a function SDL_AndroidBackButton() so applications can respond to the back button directly
2018-05-04Fix Linux haptic scaling, add 2.1 FIXMEEthan Lee1-0/+11