De-hardcode input drivers in KMS-like drivers.

This commit is contained in:
Themaister 2014-01-24 10:23:48 +01:00
parent 860dfc61e6
commit 0b462054ea
2 changed files with 4 additions and 20 deletions

View File

@ -560,16 +560,8 @@ void gfx_ctx_destroy(void)
static void gfx_ctx_input_driver(const input_driver_t **input, void **input_data) 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. *input = NULL;
#ifdef HAVE_UDEV *input_data = NULL;
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
} }
static bool gfx_ctx_has_focus(void) static bool gfx_ctx_has_focus(void)

View File

@ -337,16 +337,8 @@ static void gfx_ctx_destroy(void)
static void gfx_ctx_input_driver(const input_driver_t **input, void **input_data) 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. *input = NULL;
#ifdef HAVE_UDEV *input_data = NULL;
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
} }
static bool gfx_ctx_has_focus(void) static bool gfx_ctx_has_focus(void)