SDL/include
Sam Lantinga d3c21666de gamepad: Clarify range and direction of axes
It would be easy to assume that all APIs that reference
SDL_JOYSTICK_AXIS_MAX work the same way, but they do not: triggers
generally use the full signed 16-bit range in the lower-level joystick
API, but are normalized to be non-negative by the higher-level gamepad
API.

We also never said explicitly which direction is positive here.
Experimentally, it's right (X), down (Y), and pressed (triggers).

Resolves: https://github.com/libsdl-org/SDL/issues/8793
Signed-off-by: Simon McVittie <smcv@collabora.com>

(cherry picked from commit 059fb560ba98df5668e1cf1c88560b3156e0fb66)
2024-01-08 09:48:04 -08:00
..
begin_code.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
close_code.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_assert.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_atomic.h Fix memory barriers on ARMv5 2024-01-05 09:01:30 -08:00
SDL_audio.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_bits.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_blendmode.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_clipboard.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_config.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_config.h.cmake Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_config.h.in Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_config_android.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_config_emscripten.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_config_iphoneos.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_config_macosx.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_config_minimal.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_config_ngage.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_config_os2.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_config_pandora.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_config_windows.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_config_wingdk.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_config_winrt.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_config_xbox.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_copying.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_cpuinfo.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_egl.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_endian.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_error.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_events.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_filesystem.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_gamecontroller.h gamepad: Clarify range and direction of axes 2024-01-08 09:48:04 -08:00
SDL_gesture.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_guid.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_haptic.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_hidapi.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_hints.h Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2024-01-07 14:24:56 -08:00
SDL_joystick.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_keyboard.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_keycode.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_loadso.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_locale.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_log.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_main.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_messagebox.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_metal.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_misc.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_mouse.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_mutex.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_name.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_opengl.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_opengl_glext.h replaced line comments in public header. 2023-02-04 10:02:10 +03:00
SDL_opengles.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_opengles2.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_opengles2_gl2.h Updated to the latest version of OpenGL and Vulkan headers from the Khronos registry 2022-09-14 09:14:47 -07:00
SDL_opengles2_gl2ext.h Updated to the latest version of OpenGL and Vulkan headers from the Khronos registry 2022-09-14 09:14:47 -07:00
SDL_opengles2_gl2platform.h Updated to the latest version of OpenGL and Vulkan headers from the Khronos registry 2022-09-14 09:14:47 -07:00
SDL_opengles2_khrplatform.h Updated to the latest version of OpenGL and Vulkan headers from the Khronos registry 2022-09-14 09:14:47 -07:00
SDL_pixels.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_platform.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_power.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_quit.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_rect.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_render.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_revision.h build: Add a mechanism to mark builds with vendor info 2022-10-22 09:27:10 -07:00
SDL_revision.h.cmake build: Add a mechanism to mark builds with vendor info 2022-10-22 09:27:10 -07:00
SDL_rwops.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_scancode.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_sensor.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_shape.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_stdinc.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_surface.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_system.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_syswm.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_test.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_test_assert.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_test_common.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_test_compare.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_test_crc32.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_test_font.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_test_fuzzer.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_test_harness.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_test_images.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_test_log.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_test_md5.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_test_memory.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_test_random.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_thread.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_timer.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_touch.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_types.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_version.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_video.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_vulkan.h Sync wiki -> header 2021-10-27 01:36:05 +00:00