mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-04 18:47:09 +00:00
(Input) Cleanups
This commit is contained in:
parent
509e2e2851
commit
ec01703098
@ -57,8 +57,8 @@ static void linuxraw_exitGracefully(int sig)
|
||||
|
||||
static void *linuxraw_input_init(void)
|
||||
{
|
||||
linuxraw_input_t *linuxraw;
|
||||
struct sigaction sa;
|
||||
linuxraw_input_t *linuxraw = NULL;
|
||||
|
||||
/* Only work on terminals. */
|
||||
if (!isatty(0))
|
||||
|
@ -290,6 +290,8 @@ static bool sdl_set_rumble(void *data, unsigned port,
|
||||
static const rarch_joypad_driver_t *sdl_get_joypad_driver(void *data)
|
||||
{
|
||||
sdl_input_t *sdl = (sdl_input_t*)data;
|
||||
if (!sdl)
|
||||
return NULL;
|
||||
return sdl->joypad;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user