summaryrefslogtreecommitdiff
path: root/include/SDL_hints.h
AgeCommit message (Collapse)AuthorFilesLines
2019-04-05Set SDL_HINT_MOUSE_TOUCH_EVENTS for iPhone and iPad as wellSam Lantinga1-5/+2
2019-04-05Android: add hint SDL_HINT_ANDROID_BLOCK_ON_PAUSESylvain Becker1-0/+11
to set whether the event loop will block itself when the app is paused.
2019-04-05Android: default SDL_HINT_MOUSE_TOUCH_EVENTS to 1 as previous behaviourSylvain Becker1-0/+1
2019-04-04Android: remove SDL_HINT_ANDROID_SEPARATE_MOUSE_AND_TOUCHSylvain Becker1-13/+1
java layer runs as if separate mouse and touch was 1, Use SDL_HINT_MOUSE_TOUCH_EVENTS and SDL_HINT_TOUCH_MOUSE_EVENTS for generating synthetic touch/mouse events
2019-04-04Add hint SDL_HINT_MOUSE_TOUCH_EVENTS for mouse events to generate touch eventsSylvain Becker1-0/+12
controlling whether mouse events should generate synthetic touch events By default SDL will *not* generate touch events for mouse events
2019-03-12hidapi: Add support for Wii U/Switch USB GameCube controller adapter.Ethan Lee1-0/+11
Note that a single USB device is responsible for all 4 joysticks, so a large rewrite of the DeviceDriver functions was necessary to allow a single device to produce multiple joysticks.
2019-03-15events: Make debug logging of the event queue a hint instead of an #ifdef.Ryan C. Gordon1-0/+23
This makes it easy to toggle it on when debugging a new platform (or just getting more visibility into an app) without having to rebuild SDL.
2019-01-04Updated copyright for 2019Sam Lantinga1-1/+1
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-10-31Merge SDL-ryan-batching-renderer branch to default.Ryan C. Gordon1-0/+25
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-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-10-11thread: make SDL_CreateThreadWithStackSize() a public API.Ryan C. Gordon1-0/+4
2018-10-03Update documentation to note that this hint works on Android too (thanks Trent!)Sam Lantinga1-1/+1
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-09Added HIDAPI joystick drivers for more consistent support for Xbox, PS4 and ↵Sam Lantinga1-0/+78
Nintendo Switch Pro controller support across platforms. Added SDL_GameControllerRumble() and SDL_JoystickRumble() for simple force feedback outside of the SDL haptics API
2018-07-12Allow trapping the back button so right mouse click can work on some Android ↵Sam Lantinga1-0/+17
systems (thanks Rachel!) Also, added a function SDL_AndroidBackButton() so applications can respond to the back button directly
2018-09-14Added hints SDL_HINT_MOUSE_DOUBLE_CLICK_TIME and ↵Sam Lantinga1-0/+10
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-02-24Updated documentation with API changes in SDL 2.0.8Sam Lantinga1-1/+1
2018-02-16Fixed bug 4085 - X11: Allow configuring _NET_WM_BYPASS_COMPOSITOR through ↵Sam Lantinga1-0/+12
SDL hints Callum McGing This patch allows the user to disable the behaviour that blocks the compositor through a new hint: SDL_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR. This allows tools or other windowed applications to behave properly under KWin.
2018-02-06Replaced SDL_HINT_APPLE_TV_REMOTE_SWIPES_AS_ARROW_KEYS with ↵Sam Lantinga1-14/+13
SDL_HINT_TV_REMOTE_AS_JOYSTICK which controls whether remotes on iOS and Android are interpreted as joysticks (the default) or as return/escape/arrow keys.
2018-02-01Added SDL_HINT_IOS_HIDE_HOME_INDICATOR to determine how the home indicator ↵Sam Lantinga1-1/+12
on the iPhone X is handled. This variable can be set to the following values: "0" - The indicator bar is not hidden (default for windowed applications) "1" - The indicator bar is hidden and is shown when the screen is touched (useful for movie playback applications) "2" - The indicator bar is dim and the first swipe makes it visible and the second swipe performs the "home" action (default for fullscreen applications)
2018-01-17Added a hint SDL_HINT_APPLE_TV_REMOTE_SWIPES_AS_ARROW_KEYS to prevent ↵Sam Lantinga1-0/+10
turning Apple TV remote swipes into arrow key events
2018-01-03Updated copyright for 2018Sam Lantinga1-1/+1
2017-12-19Fixed bug 4004 - iOS: don't hide keyboard on RETURNSam Lantinga1-5/+4
Dominik Reichardt As discussed in 2012 the iOS onscreen keyboard hides when you hit RETURN (see https://discourse.libsdl.org/t/on-screen-keyboard-change/19216). IMO this is a bad idea to not be able to influence this behavior and just recently this was fixed for Android by adding the hint SDL_HINT_ANDROID_RETURN_HIDES_IME in changeset 11768 0f2fb9ec6ad6.
2017-12-12Add the ability to set SDL to handle Return as 'hide IME' on Android ↵Sam Lantinga1-0/+13
softkeyboard. (thanks Rachel!)
2017-12-08hints: Add "metal" to the list of SDL_RENDER_DRIVER hints.Ryan C. Gordon1-0/+1
2017-11-07Fixed bug 3943 - General SDL_HINT_VIDEO_DOUBLE_BUFFER hint supportBrandon Schaefer1-8/+16
2017-10-26Fixed bug 3902 - Add a specific KMSDRM hint for low latency videoBrandon Schaefer1-0/+10
2017-09-15Added a hint SDL_HINT_AUDIO_CATEGORY to control the audio category,Sam Lantinga1-0/+13
determining whether the phone mute switch affects the audio
2017-08-14Fixed bug 3745 - specify SDLCALL as the calling convention for API callbacksSam Lantinga1-1/+1
Patches contributed by Ozkan Sezer
2017-08-13Fixed bug 2841 - Hint to set resource id for window iconSam Lantinga1-0/+6
Alexey Seems to be a missing functionality. I want to set an icon from RC file. I cant pass MAKEINTRESOURCE(X) string to SDL_RegisterApp() cause string returned by MAKEINTRESOURCE string is not actually a string and SDL_strlen will crash. Moreover LoadImage seems to be loading wrong icon size. LoadIcon seems to be fine.
2017-08-09Added SDL hints to filter the set of game controllers reported by SDLSam Lantinga1-6/+26
2017-08-03Added a hint SDL_HINT_TOUCH_MOUSE_EVENTS to control whether touch events ↵Sam Lantinga1-0/+11
generate synthetic mouse events.
2017-06-08Fixed environment variable of SDL_HINT_RENDER_LOGICAL_SIZE_MODE.Philipp Wiesemann1-1/+1
2017-06-06Merged Eric Wing's overscan patch.Ryan C. Gordon1-0/+11
Fixes Bugzilla #2799.
2017-06-06windows: Change the default on SDL_HINT_WINDOWS_DISABLE_THREAD_NAMING.Ryan C. Gordon1-4/+9
It's easier for Visual Studio users that want this information to turn it on or live without it, than it is to explain why every debugger that isn't Visual Studio crashes out here. Eventually SetThreadDescription() will be the thing everyone uses anyhow. Fixes Bugzilla #3645. (and several others).
2017-01-24Generalized the audio resampling hint for other resampling methods in the futureSam Lantinga1-19/+9
2017-01-24audio: Offer a hint for libsamplerate quality/speed tradeoff.Ryan C. Gordon1-0/+36
This defaults to the internal SDL resampler, since that's the likely default without a system-wide install of libsamplerate, but those that need more can tweak this.
2017-01-14Fixed doxygen warning and linking of function names.Philipp Wiesemann1-3/+3
2017-01-10Fixed bugs 2570, 3145, improved OpenGL ES context support on Windows and X11Sam Lantinga1-0/+31
Mark Callow The attached patch does the following for the X11 and Windows platforms, the only ones where SDL attempts to use context_create_es_profile: - Adds SDL_HINT_OPENGL_ES_DRIVER by which the application can say to use the OpenGL ES driver & EGL rather than the Open GL driver. (For bug #2570) - Adds code to {WIN,X11}_GL_InitExtensions to determine the maximum OpenGL ES version supported by the OpenGL driver (for bug #3145) - Modifies the test that determines whether to use the OpenGL driver or the real OpenGL ES driver to take into account the hint, the requested and supported ES version and whether ES 1.X is being requested. (For bug #2570 & bug #3145) - Enables the testgles2 test for __WINDOWS__ and __LINUX__ and adds the test to the VisualC projects. With the fix in place I have run testdraw2, testgl and testgles2 without any issues and have run my own apps that use OpenGL, OpenGL ES 3 and OpenGL ES 1.1.
2017-01-01Updated copyright for 2017Sam Lantinga1-1/+1
2016-12-23Corrected header file guard comments.Philipp Wiesemann1-3/+3
2016-12-02Added SDL_HINT_MOUSE_NORMAL_SPEED_SCALE and ↵Sam Lantinga1-0/+10
SDL_HINT_MOUSE_RELATIVE_SPEED_SCALE to scale the speed of the mouse. This currently doesn't affect absolute motion, which would need to be implemented on each windowing system so the cursor matches the reported mouse coordinates.
2016-11-20Renaming of guard header names to quiet -Wreserved-id-macroSam Lantinga1-3/+3
Patch contributed by Sylvain
2016-11-20Fixed a few warnings that show up with -Wdocumentation and ↵Sam Lantinga1-1/+5
-Wdocumentation-unknown-command, patch contributed by Sylvain
2016-11-13[qtwayland] Set orientation and window flags via SDL hintsThomas Perl1-0/+27
2016-10-18Fixed bug 3369 - RaspberryPI ability to specify a Dispmanx layerSam Lantinga1-0/+8
Albert Casals On a RaspberryPI, it might become convenient to specify the Dispmanx layer SDL uses. Currently, it is hardcoded to be 10000 to sit above most applications. This can be specially useful when integrating other graphical apps and frameworks like OMXplayer, QT5 etc.. in order to have more flexibility on their Z-order.
2016-10-07Implemented SDL_GetHintBoolean() to make it easier to check boolean hintsSam Lantinga1-0/+7
2016-09-30SDL_HINT_WINDOWS_DISABLE_THREAD_NAMINGEthan Lee1-0/+11