SDL/src
Ozkan Sezer 98bec6749f hidapi, windows: sync with mainstream: change MAX_STRING_WCHARS to 126.
This merges mainstream commit
4f2e91bae8
(authored by Vladimir Gladkov) into ours. From the original commit log:

Win32 HID API doc says: For USB devices, the maximum string length is
126 wide characters (not including the terminating NULL character).

For certain USB devices, using a buffer larger or equal to 127 wchars
results in successful completion of HID API functions, but a broken
string is stored in the output buffer. This behaviour persists even if
HID API is bypassed and HID IOCTLs are passed to the HID driver directly
(IOCTL_HID_GET_MANUFACTURER_STRING, IOCTL_HID_GET_PRODUCT_STRING, etc).

So, the buffer MUST NOT exceed 126 wchars.

windows: refactor ULONGLONG hid_internal_get_info(...) ->
 hid_internal_detect_bus_type_result hid_internal_detect_bus_type(...)

hid_internal_detect_bus_type is now only responsible for detection of
the bus type; rename it accordingly. Also, mixing an internal flag and
DEV_INST into an ULONGLONG retval feels kinda hackish; use a cleaner
approach instead (add an internal flag to help distinguishing between
BLUETOOTH and BLE devices, then clear it once we are done).
2024-03-05 14:39:20 +03:00
..
atomic Define SDL_PLATFORM_* macros instead of underscored ones (#8875) 2024-01-24 01:40:51 +00:00
audio audio: Change references to streams[i] to previously-calculated stream. 2024-02-20 15:30:01 -05:00
camera mediafoundation: fix SDL_camera_mediafoundation MinGW compile warnings 2024-02-22 07:18:22 -05:00
core Set udev class for accelerometer 2024-03-03 08:40:24 -08:00
cpuinfo SDL_cpuinfo.c: adjust for new SDL_PLATFORM_WINDOWS meaning. 2024-01-24 21:20:50 +03:00
dynapi Added SDL_AddVulkanRenderSemaphores() for external synchronization with SDL rendering 2024-03-04 09:29:36 -08:00
events Updating the mouse capture should use the mouse focus window 2024-03-03 11:32:17 -08:00
file SDL_rwops.c (SDL_IsRegularFile): fix WinRT build failure due to S_ISREG 2024-01-28 02:22:00 +03:00
filesystem Use SDL string functions 2024-02-12 19:51:48 -08:00
haptic Renamed SDL_HINT_DIRECTINPUT_ENABLED to SDL_HINT_JOYSTICK_DIRECTINPUT 2024-02-12 09:54:33 -08:00
hidapi hidapi, windows: sync with mainstream: change MAX_STRING_WCHARS to 126. 2024-03-05 14:39:20 +03:00
joystick Convert mappings using labeled buttons to positional buttons 2024-03-03 14:17:03 -08:00
libm Define SDL_PLATFORM_* macros instead of underscored ones (#8875) 2024-01-24 01:40:51 +00:00
loadso Define SDL_PLATFORM_* macros instead of underscored ones (#8875) 2024-01-24 01:40:51 +00:00
locale
main main: Fixed compiler warning on Android. 2024-02-20 15:56:26 -05:00
misc Added VisionOS as a supported target to the Xcode project 2024-01-27 11:07:21 -08:00
power Added VisionOS as a supported target to the Xcode project 2024-01-27 11:07:21 -08:00
render vulkan: enable samplerYcbcrConversion when creating the device 2024-03-04 11:17:42 -08:00
sensor Removed SDL_EVENTS_DISABLED 2024-01-17 09:24:04 -08:00
stdlib stdlib: qsort and bsearch changes. 2024-03-01 08:28:12 -05:00
test SDLTest_CommonEvent: only set done when it is finished 2024-02-28 12:57:30 +01:00
thread Removed SDL_HINT_THREAD_STACK_SIZE 2024-02-12 09:54:33 -08:00
timer Define SDL_PLATFORM_* macros instead of underscored ones (#8875) 2024-01-24 01:40:51 +00:00
video video: Don't overwrite all the pending flags in the OnWindowHidden handler 2024-03-04 10:30:11 -05:00
SDL.c Removed SDL_ClearHints() from the public API 2024-02-24 21:07:50 -08:00
SDL_assert.c Define SDL_PLATFORM_* macros instead of underscored ones (#8875) 2024-01-24 01:40:51 +00:00
SDL_assert_c.h
SDL_error.c
SDL_error_c.h
SDL_guid.c
SDL_hashtable.c
SDL_hashtable.h
SDL_hints.c
SDL_hints_c.h Removed SDL_ClearHints() from the public API 2024-02-24 21:07:50 -08:00
SDL_internal.h Vulkan Renderer (#9114) 2024-02-22 14:58:11 -08:00
SDL_list.c
SDL_list.h
SDL_log.c Added the environment variable SDL_LOGGING to control default log output 2024-01-27 19:30:22 -08:00
SDL_log_c.h
SDL_properties.c Property query functions don't set an error if they return the default value 2024-02-17 07:59:04 -08:00
SDL_properties_c.h Added SDL_SetFreeableProperty() for internal use 2024-02-10 08:04:27 -08:00
SDL_utils.c
SDL_utils_c.h