mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-27 06:11:51 +00:00
(xdk_xinput_input) Cleanup
This commit is contained in:
parent
ec01703098
commit
894076f52d
@ -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);
|
||||
|
@ -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 = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user