glfw/src
Camilla Löwy 74a8ba26c3 Simplify parsing of default gamepad mappings
The outer glfwUpdateGamepadMappings function is now bypassed when
parsing the default gamepad mappings.  The data in mappings.h does not
contain any comments or line breaks.  Also this is done before joystick
support has been initialized, so there is no need to look for matching
devices.

Finally, the array of default mappings is pre-allocated.  This has no
measurable performance impact but does generate a lot of calls, which
won't be nice for a user provided custom allocator to deal with.

(cherry picked from commit 201400b974)
2021-08-27 17:13:12 +02:00
..
CMakeLists.txt Add custom target for updating gamepad mappings 2021-08-03 16:00:30 +02:00
cocoa_init.m Cocoa: Fix console apps getting a dock icon 2021-02-10 18:17:16 +01:00
cocoa_joystick.h Add gamepad mapping filtering by backend 2021-08-03 16:01:03 +02:00
cocoa_joystick.m Use the correct type in a for loop 2019-12-31 23:10:29 +01:00
cocoa_monitor.m Make monitor and joystick names static strings 2021-06-09 18:37:31 +02:00
cocoa_platform.h Cocoa: Fix macro redefinition warning 2021-08-03 15:43:16 +02:00
cocoa_time.c Add C dialect reminders to each source file 2019-05-27 16:33:22 +02:00
cocoa_window.m Improve error description for invalid scancodes 2021-08-03 15:59:59 +02:00
context.c Move single/double-buffer filtering to backends 2021-06-15 18:07:28 +02:00
egl_context.c EGL: Fix creation of single-buffered windows 2021-06-15 18:07:38 +02:00
egl_context.h EGL: Fix creation of single-buffered windows 2021-06-15 18:07:38 +02:00
glfw3.pc.in Move to the modern CMake project version option 2019-05-19 18:30:58 +02:00
glfw3Config.cmake.in Include imported targets into module config file 2016-02-02 06:00:18 +01:00
glfw_config.h.in Cocoa: Select Vulkan surface extension at runtime 2020-01-17 15:40:48 +01:00
glx_context.c Move single/double-buffer filtering to backends 2021-06-15 18:07:28 +02:00
glx_context.h Replace some tabs with spaces 2019-07-16 14:38:14 +02:00
init.c Simplify parsing of default gamepad mappings 2021-08-27 17:13:12 +02:00
input.c Simplify parsing of default gamepad mappings 2021-08-27 17:13:12 +02:00
internal.h Simplify parsing of default gamepad mappings 2021-08-27 17:13:12 +02:00
linux_joystick.c Convert some declarations to C99 style 2019-07-16 14:38:26 +02:00
linux_joystick.h Add gamepad mapping filtering by backend 2021-08-03 16:01:03 +02:00
mappings.h Simplify parsing of default gamepad mappings 2021-08-27 17:13:12 +02:00
mappings.h.in Simplify parsing of default gamepad mappings 2021-08-27 17:13:12 +02:00
monitor.c Make monitor and joystick names static strings 2021-06-09 18:37:31 +02:00
nsgl_context.h NSGL: Remove problematic swap interval workaround 2019-12-31 23:08:05 +01:00
nsgl_context.m Cocoa: Fix call to NSWindow from non-main threads 2020-05-19 14:33:15 +02:00
null_init.c Add C dialect reminders to each source file 2019-05-27 16:33:22 +02:00
null_joystick.c Add C dialect reminders to each source file 2019-05-27 16:33:22 +02:00
null_joystick.h Fix -Wextra-semi warnings 2019-11-05 17:59:15 +01:00
null_monitor.c Add C dialect reminders to each source file 2019-05-27 16:33:22 +02:00
null_platform.h Fix -Wextra-semi warnings 2019-11-05 17:59:15 +01:00
null_window.c Add C dialect reminders to each source file 2019-05-27 16:33:22 +02:00
osmesa_context.c Add C dialect reminders to each source file 2019-05-27 16:33:22 +02:00
osmesa_context.h Fix copyright years (somewhat) 2019-04-15 20:50:00 +02:00
posix_thread.c Add C dialect reminders to each source file 2019-05-27 16:33:22 +02:00
posix_thread.h Fix copyright years (somewhat) 2019-04-15 20:50:00 +02:00
posix_time.c Add C dialect reminders to each source file 2019-05-27 16:33:22 +02:00
posix_time.h Fix copyright years (somewhat) 2019-04-15 20:50:00 +02:00
vulkan.c Cocoa: Add fully dynamic loading of Vulkan loader 2020-01-17 15:42:39 +01:00
wgl_context.c Move single/double-buffer filtering to backends 2021-06-15 18:07:28 +02:00
wgl_context.h WGL: Remove unused constants 2020-02-13 22:02:23 +01:00
win32_init.c Win32: Add warning when option will have no effect 2021-03-21 23:23:17 +01:00
win32_joystick.c Win32: Fix VS /W4 compile warnings 2020-06-02 19:01:15 +02:00
win32_joystick.h Add gamepad mapping filtering by backend 2021-08-03 16:01:03 +02:00
win32_monitor.c Win32: Update all monitor handles on config change 2020-09-30 16:10:17 +02:00
win32_platform.h Replace GL_ARB_debug_output in comments 2021-06-09 18:26:39 +02:00
win32_thread.c Add C dialect reminders to each source file 2019-05-27 16:33:22 +02:00
win32_time.c Add C dialect reminders to each source file 2019-05-27 16:33:22 +02:00
win32_window.c Improve error description for invalid scancodes 2021-08-03 15:59:59 +02:00
window.c Add tracking of single-/double-buffering 2021-06-15 18:04:05 +02:00
wl_init.c Wayland: Fix missing constant on FreeBSD 2021-08-03 14:03:01 +02:00
wl_monitor.c Make monitor and joystick names static strings 2021-06-09 18:37:31 +02:00
wl_platform.h Wayland: Don’t reload the cursor on every pointer motion 2019-12-03 17:17:33 +01:00
wl_window.c Wayland: Fix destroying CSDs in the correct order 2021-02-09 21:49:16 +01:00
x11_init.c Use the correct type in a for loop 2020-06-02 19:01:09 +02:00
x11_monitor.c Fix typos 2020-06-30 17:09:55 +02:00
x11_platform.h X11: Fix detection of key events duplicated by XIM 2020-07-16 13:30:39 +02:00
x11_window.c Improve error description for invalid scancodes 2021-08-03 15:59:59 +02:00
xkb_unicode.c Add C dialect reminders to each source file 2019-05-27 16:33:22 +02:00
xkb_unicode.h Remove internal header inclusion guards 2017-05-25 19:35:13 +02:00