glfw/src
Camilla Löwy 2c1d31009f Cocoa: Fix segfault querying joystick elements
It is reportedly possible for IOHIDDeviceCopyMatchingElements to return
NULL on macOS 13 if the application lacks input monitoring permissions.

This commit only prevents the segfault.  More work will be needed to
correctly handle this situation, including Game Controller support.

Related to #2320
Closes #2321
2023-12-12 18:36:14 +01:00
..
CMakeLists.txt Linux: Fix POSIX version not set for Null build 2023-11-21 17:40:43 +01:00
cocoa_init.m Add conditional compilation for platform units 2022-09-15 22:24:39 +02:00
cocoa_joystick.h Add conditional compilation for platform units 2022-09-15 22:24:39 +02:00
cocoa_joystick.m Cocoa: Fix segfault querying joystick elements 2023-12-12 18:36:14 +01:00
cocoa_monitor.m Add conditional compilation for platform units 2022-09-15 22:24:39 +02:00
cocoa_platform.h Fix return type of functions returning bool values 2022-06-08 22:14:38 +02:00
cocoa_time.c Add conditional compilation for platform units 2022-09-15 22:24:39 +02:00
cocoa_time.h Add runtime platform selection 2021-10-13 21:47:11 +02:00
cocoa_window.m Cocoa: No NSWindowStyleMaskResizable in fullscreen 2023-12-11 21:25:44 +01:00
context.c Fix potential violation of invariant 2023-12-05 18:36:54 +01:00
egl_context.c EGL: Fix GLFW_CONTEXT_NO_ERROR on Mesa 2023-12-12 13:47:37 +01:00
glfw.rc.in Win32: Add VERSIONINFO resource to GLFW DLL 2019-12-11 21:02:08 +01:00
glx_context.c Add assertions for context function invariants 2023-12-05 18:36:54 +01:00
init.c Wayland: Add initial support for libdecor 2023-03-27 22:03:36 +02:00
input.c Simplify joystick hat value assertions 2023-12-06 18:34:22 +01:00
internal.h Wayland: Add initial support for libdecor 2023-03-27 22:03:36 +02:00
linux_joystick.c Cleanup 2023-11-16 23:08:30 +01:00
linux_joystick.h Cleanup 2023-11-16 23:08:30 +01:00
mappings.h Add conditional compilation for platform units 2022-09-15 22:24:39 +02:00
mappings.h.in Add conditional compilation for platform units 2022-09-15 22:24:39 +02:00
monitor.c Add basic assertions for event API arguments 2022-06-08 22:14:38 +02:00
nsgl_context.m Add assertions for context function invariants 2023-12-05 18:36:54 +01:00
null_init.c Null: Add (fictional) scancodes 2023-03-31 15:56:01 +02:00
null_joystick.c Fix return type of functions returning bool values 2022-06-08 22:14:38 +02:00
null_joystick.h Fix return type of functions returning bool values 2022-06-08 22:14:38 +02:00
null_monitor.c Add runtime platform selection 2021-10-13 21:47:11 +02:00
null_platform.h Null: Remove duplicated function declaration 2023-11-21 20:28:39 +01:00
null_window.c Null: Add (fictional) scancodes 2023-03-31 15:56:01 +02:00
osmesa_context.c X11: Fix sonames for loaded libraries on NetBSD 2022-03-04 00:00:59 +01:00
platform.c Move helper macros to single point of use 2022-09-15 22:14:41 +02:00
platform.h Add conditional compilation for platform units 2022-09-15 22:24:39 +02:00
posix_module.c Add conditional compilation for platform units 2022-09-15 22:24:39 +02:00
posix_poll.c Add conditional compilation for platform units 2022-09-15 22:24:39 +02:00
posix_poll.h Share X11 fd polling logic with Wayland 2022-03-03 22:23:57 +01:00
posix_thread.c Add conditional compilation for platform units 2022-09-15 22:24:39 +02:00
posix_thread.h Add runtime platform selection 2021-10-13 21:47:11 +02:00
posix_time.c Add conditional compilation for platform units 2022-09-15 22:24:39 +02:00
posix_time.h Add runtime platform selection 2021-10-13 21:47:11 +02:00
vulkan.c X11: Fix sonames for loaded libraries on NetBSD 2022-03-04 00:00:59 +01:00
wgl_context.c Add assertions for context function invariants 2023-12-05 18:36:54 +01:00
win32_init.c Win32: Fix typo in error description 2023-03-03 14:36:12 +01:00
win32_joystick.c Win32: Fix invalid hat bit mask being accepted 2023-12-06 18:34:12 +01:00
win32_joystick.h Add conditional compilation for platform units 2022-09-15 22:24:39 +02:00
win32_module.c Add conditional compilation for platform units 2022-09-15 22:24:39 +02:00
win32_monitor.c Add conditional compilation for platform units 2022-09-15 22:24:39 +02:00
win32_platform.h Refactor cursor mode paths 2022-07-25 18:02:57 +02:00
win32_thread.c Add conditional compilation for platform units 2022-09-15 22:24:39 +02:00
win32_thread.h Add runtime platform selection 2021-10-13 21:47:11 +02:00
win32_time.c Add conditional compilation for platform units 2022-09-15 22:24:39 +02:00
win32_time.h Add runtime platform selection 2021-10-13 21:47:11 +02:00
win32_window.c Win32: Fix glfwWaitEventsTimeout ignoring messages 2023-11-16 20:49:23 +01:00
window.c Add window hints for initial position 2022-07-29 11:50:13 +02:00
wl_init.c Wayland: Use Wayland to wait for libdecor to init 2023-11-30 18:52:12 +01:00
wl_monitor.c Wayland: Simplify per-window ouput scales tracking 2023-03-27 22:03:36 +02:00
wl_platform.h Wayland: Use Wayland to wait for libdecor to init 2023-11-30 18:52:12 +01:00
wl_window.c Wayland: Fix heuristics for what counts as events 2023-11-30 18:52:43 +01:00
x11_init.c Linux: Fix joystick input being disabled 2022-12-15 20:18:59 +01:00
x11_monitor.c Add conditional compilation for platform units 2022-09-15 22:24:39 +02:00
x11_platform.h GLX: Add support for loading glvnd libGLX 2022-07-29 19:14:04 +02:00
x11_window.c Linux: Fix joystick input being disabled 2022-12-15 20:18:59 +01:00
xkb_unicode.c Add conditional compilation for platform units 2022-09-15 22:24:39 +02:00
xkb_unicode.h Clean up internal Unicode code point handling 2021-12-31 13:27:22 +01:00