De-hardcode input drivers in KMS-like drivers.
This commit is contained in:
parent
860dfc61e6
commit
0b462054ea
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue