(xdk_xinput_input) Cleanup

This commit is contained in:
twinaphex 2015-03-09 19:00:01 +01:00
parent ec01703098
commit 894076f52d
2 changed files with 4 additions and 3 deletions

View File

@ -658,6 +658,7 @@ static void disable_terminal_input(void)
if (tcgetattr(0, &oldterm) < 0)
return;
newterm = oldterm;
newterm.c_lflag &= ~(ECHO | ICANON | ISIG);
newterm.c_iflag &= ~(ISTRIP | IGNCR | ICRNL | INLCR | IXOFF | IXON);

View File

@ -136,9 +136,9 @@ static bool xdk_input_set_rumble(void *data, unsigned port,
static const rarch_joypad_driver_t *xdk_input_get_joypad_driver(void *data)
{
xdk_input_t *xdk = (xdk_input_t*)data;
if (xdk)
return xdk->joypad;
return NULL;
if (!xdk)
return NULL;
return xdk->joypad;
}
input_driver_t input_xinput = {