SDL/include
Tomasz Pakuła 529ed102fc Translate conditional effect direction instead of hardcoding it to 0
Provious code wrongly assumed that direction is not an important part
of conditional effect. Moreover, if there's need to hardcode polar
direction, the default should be 0x4000 (north).

For one axis affects, a direction of 0 means complete lack of force, if
a FFB-enabled device takes direction into force calculation. A sine function
graph can be used to represent the resulting forces where X is the input
direction and Y is the force multiplier (360 degrees equals to 1).

This fixes conditional effect playback on Moza Racing devices, which do
not ignore direction field.
2025-01-20 16:52:11 -08:00
..
SDL.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_assert.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_atomic.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_audio.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_bits.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_blendmode.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_clipboard.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_config.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_config.h.cmake Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_config.h.in Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_config_android.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_config_emscripten.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_config_iphoneos.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_config_macosx.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_config_minimal.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_config_ngage.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_config_os2.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_config_pandora.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_config_windows.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_config_wingdk.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_config_winrt.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_config_xbox.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_copying.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_cpuinfo.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_egl.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_endian.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_error.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_events.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_filesystem.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_gamecontroller.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_gesture.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_guid.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_haptic.h Translate conditional effect direction instead of hardcoding it to 0 2025-01-20 16:52:11 -08:00
SDL_hidapi.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_hints.h Sync SDL2 wiki -> header 2025-01-11 16:25:41 +00:00
SDL_joystick.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_keyboard.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_keycode.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_loadso.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_locale.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_log.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_main.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_messagebox.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_metal.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_misc.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_mouse.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_mutex.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_name.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_opengl.h Updated copyright for 2025 2025-01-01 07:47:53 -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 2025 2025-01-01 07:47:53 -08:00
SDL_opengles2.h Updated copyright for 2025 2025-01-01 07:47:53 -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 2025 2025-01-01 07:47:53 -08:00
SDL_platform.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_power.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_quit.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_rect.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_render.h Updated copyright for 2025 2025-01-01 07:47:53 -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 2025 2025-01-01 07:47:53 -08:00
SDL_scancode.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_sensor.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_shape.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_stdinc.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_surface.h Sync SDL2 wiki -> header 2025-01-15 15:27:42 +00:00
SDL_system.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_syswm.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_test.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_test_assert.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_test_common.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_test_compare.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_test_crc32.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_test_font.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_test_fuzzer.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_test_harness.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_test_images.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_test_log.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_test_md5.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_test_memory.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_test_random.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_thread.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_timer.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_touch.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_types.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_version.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_video.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_vulkan.h SDL_vulkan.h: undefine VK_DEFINE_HANDLER and VK_DEFINE_NON_DISPATCHABLE_HANDLE 2024-10-29 20:35:10 +03:00
begin_code.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
close_code.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00