From 0b462054ea223831cb49e8e8e4d1a5548a486e76 Mon Sep 17 00:00:00 2001 From: Themaister Date: Fri, 24 Jan 2014 10:23:48 +0100 Subject: [PATCH] De-hardcode input drivers in KMS-like drivers. --- gfx/context/drm_egl_ctx.c | 12 ++---------- gfx/context/vc_egl_ctx.c | 12 ++---------- 2 files changed, 4 insertions(+), 20 deletions(-) diff --git a/gfx/context/drm_egl_ctx.c b/gfx/context/drm_egl_ctx.c index 518e784e36..174032debb 100644 --- a/gfx/context/drm_egl_ctx.c +++ b/gfx/context/drm_egl_ctx.c @@ -560,16 +560,8 @@ void gfx_ctx_destroy(void) static void gfx_ctx_input_driver(const input_driver_t **input, void **input_data) { - // FIXME: Rather than hardcode, the user should be able to set the input driver here. -#ifdef HAVE_UDEV - void *udev = input_udev.init(); - *input = udev ? &input_udev : NULL; - *input_data = udev; -#else - void *linuxinput = input_linuxraw.init(); - *input = linuxinput ? &input_linuxraw : NULL; - *input_data = linuxinput; -#endif + *input = NULL; + *input_data = NULL; } static bool gfx_ctx_has_focus(void) diff --git a/gfx/context/vc_egl_ctx.c b/gfx/context/vc_egl_ctx.c index 7ca936afde..9785842b52 100644 --- a/gfx/context/vc_egl_ctx.c +++ b/gfx/context/vc_egl_ctx.c @@ -337,16 +337,8 @@ static void gfx_ctx_destroy(void) static void gfx_ctx_input_driver(const input_driver_t **input, void **input_data) { - // FIXME: Rather than hardcode, the user should be able to set the input driver here. -#ifdef HAVE_UDEV - void *udev = input_udev.init(); - *input = udev ? &input_udev : NULL; - *input_data = udev; -#else - void *linuxinput = input_linuxraw.init(); - *input = linuxinput ? &input_linuxraw : NULL; - *input_data = linuxinput; -#endif + *input = NULL; + *input_data = NULL; } static bool gfx_ctx_has_focus(void)