remap-redux part2: fix right stick
This commit is contained in:
parent
72065aee0b
commit
f517ca3b56
|
@ -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;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue