Sam Lantinga
80c6a5f8d9
Updated copyright for 2026
2026-01-01 09:48:19 -08:00
Sam Lantinga
98e76d283f
Fixed conflict when linking both SDL and hidapi statically
...
Fixes https://github.com/libsdl-org/SDL/issues/12790
2025-04-10 09:57:37 -07:00
Sam Lantinga
f2074d7af3
Updated copyright for 2025
2025-01-01 07:45:52 -08:00
Sam Lantinga
5b3ee51c6c
Updated copyright for 2024
2024-01-01 13:15:26 -08:00
Ozkan Sezer
0c862d9a55
added compiler support comment about #pragma push_macro/pop_macro.
2023-06-03 17:23:40 +03:00
Ozkan Sezer
3ecdbf27cc
hidapi: silence redefinition warnings
2023-06-02 07:25:02 -07:00
Sam Lantinga
bc28790817
Make sure hidapi error handling is thread-safe
...
The hidapi method of storing the error on the device is not thread-safe, and not only could it result in a double free if multiple threads were setting the error at the same time, but SDL could be trying to use the error message and have it be freed out from under it by another thread.
Use SDL's error functions since they already use thread-local storage.
2023-05-26 23:50:50 -07:00
Sam Lantinga
1ef18c7677
Fixed windows build
2023-05-26 09:50:30 -07:00
Sam Lantinga
007c36e513
Added SDL_HINT_HIDAPI_IGNORE_DEVICES to specify devices that should be ignored in SDL_hid_enumerate()
2023-05-26 08:19:04 -07:00
Sam Lantinga
b0ba509d87
hidapi/windows: allow building on Windows, using the SDL C runtime
...
Signed-off-by: Sam Lantinga <slouken@libsdl.org >
2023-05-26 08:19:04 -07:00
Sam Lantinga
22f22472a0
Create wrapper headers for platform specific hidapi modules
2023-05-26 08:19:04 -07:00