remap-redux part2: fix right stick

This commit is contained in:
radius 2018-04-08 11:01:47 -05:00
parent 72065aee0b
commit f517ca3b56
1 changed files with 21 additions and 21 deletions

View File

@ -249,31 +249,31 @@ void input_mapper_state(
*ret = val; *ret = val;
} }
} }
if (idx == 1) }
if (idx == 1)
{
if (id == 0)
{ {
if (id == 0) if (handle->analog_value[port][4])
{ val = handle->analog_value[port][4];
if (handle->analog_value[port][4]) else if (handle->analog_value[port][5])
val = handle->analog_value[port][4]; val = handle->analog_value[port][5];
else if (handle->analog_value[port][5])
val = handle->analog_value[port][5];
if(handle->analog_value[port][4] || handle->analog_value[port][5]) if(handle->analog_value[port][4] || handle->analog_value[port][5])
{ {
*ret = val; *ret = val;
}
} }
if (id == 1) }
{ if (id == 1)
if (handle->analog_value[port][6]) {
val = handle->analog_value[port][6]; if (handle->analog_value[port][6])
else if (handle->analog_value[port][7]) val = handle->analog_value[port][6];
val = handle->analog_value[port][7]; else if (handle->analog_value[port][7])
val = handle->analog_value[port][7];
if(handle->analog_value[port][6] || handle->analog_value[port][7]) if(handle->analog_value[port][6] || handle->analog_value[port][7])
{ {
*ret = val; *ret = val;
}
} }
} }
} }