Use udev over linuxraw if possible.

This commit is contained in:
Themaister 2013-12-07 14:28:34 +01:00
parent d20b8b1b03
commit e7ddbf1192
2 changed files with 12 additions and 0 deletions

View File

@ -545,9 +545,15 @@ void gfx_ctx_destroy(void)
static void gfx_ctx_input_driver(const input_driver_t **input, void **input_data)
{
#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
}
static bool gfx_ctx_has_focus(void)

View File

@ -337,9 +337,15 @@ static void gfx_ctx_destroy(void)
static void gfx_ctx_input_driver(const input_driver_t **input, void **input_data)
{
#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
}
static bool gfx_ctx_has_focus(void)