mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-26 05:16:18 +00:00
Use udev over linuxraw if possible.
This commit is contained in:
parent
d20b8b1b03
commit
e7ddbf1192
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user