Add null joystick backend

This prepares the X11 backend to support other joystick APIs, for
example the FreeBSD libusb one.
This commit is contained in:
Camilla Löwy
2017-01-31 03:29:28 +01:00
parent c5694b3013
commit 67a55efa27
13 changed files with 103 additions and 38 deletions
+5 -1
View File
@@ -89,10 +89,14 @@ typedef VkBool32 (APIENTRY *PFN_vkGetPhysicalDeviceXcbPresentationSupportKHR)(Vk
#include "posix_tls.h"
#include "posix_time.h"
#include "linux_joystick.h"
#include "xkb_unicode.h"
#include "glx_context.h"
#include "egl_context.h"
#if defined(__linux__)
#include "linux_joystick.h"
#else
#include "null_joystick.h"
#endif
#define _glfw_dlopen(name) dlopen(name, RTLD_LAZY | RTLD_LOCAL)
#define _glfw_dlclose(handle) dlclose(handle)