mirror of
https://github.com/glfw/glfw.git
synced 2025-10-04 13:46:37 +00:00
The major change is the addition of the inputValueCallback function. This callback function is registered with the HID Manager using the HIDDeviceRef when a joystick is connected. Whenever an axis, button, or hat switch value is changed for that HID device, the inputValueCallback function is called: the appropriate value will be updated (which alleviates the need for polling, hence the removal of the polling functions) and, if a user callback has been registered, event notification will be provided. (Note that in the case of hat switches, which are treated as quad sets of buttons, one for each direction, user notification is provided only if the value for that direction has actually changed). |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
cocoa_init.m | ||
cocoa_joystick.h | ||
cocoa_joystick.m | ||
cocoa_monitor.m | ||
cocoa_platform.h | ||
cocoa_time.c | ||
cocoa_window.m | ||
context.c | ||
egl_context.c | ||
egl_context.h | ||
glfw3.pc.in | ||
glfw3Config.cmake.in | ||
glfw_config.h.in | ||
glx_context.c | ||
glx_context.h | ||
init.c | ||
input.c | ||
internal.h | ||
linux_joystick.c | ||
linux_joystick.h | ||
mir_init.c | ||
mir_monitor.c | ||
mir_platform.h | ||
mir_window.c | ||
monitor.c | ||
nsgl_context.h | ||
nsgl_context.m | ||
posix_time.c | ||
posix_time.h | ||
posix_tls.c | ||
posix_tls.h | ||
vulkan.c | ||
wgl_context.c | ||
wgl_context.h | ||
win32_init.c | ||
win32_joystick.c | ||
win32_joystick.h | ||
win32_monitor.c | ||
win32_platform.h | ||
win32_time.c | ||
win32_tls.c | ||
win32_window.c | ||
window.c | ||
wl_init.c | ||
wl_monitor.c | ||
wl_platform.h | ||
wl_window.c | ||
x11_init.c | ||
x11_monitor.c | ||
x11_platform.h | ||
x11_window.c | ||
xkb_unicode.c | ||
xkb_unicode.h |