Take this out
This commit is contained in:
parent
26775a625a
commit
badac565da
|
@ -131,16 +131,13 @@ int16_t input_state_get_last(unsigned port,
|
||||||
{
|
{
|
||||||
InputListElement *element =
|
InputListElement *element =
|
||||||
(InputListElement*)input_state_list->data[i];
|
(InputListElement*)input_state_list->data[i];
|
||||||
const unsigned MAX_ID = sizeof(element->state) / sizeof(int16_t);
|
|
||||||
|
|
||||||
if ( (element->port == port) &&
|
if ( (element->port == port) &&
|
||||||
(element->device == device) &&
|
(element->device == device) &&
|
||||||
(element->index == index))
|
(element->index == index))
|
||||||
{
|
{
|
||||||
if (id < element->state_size)
|
if (id < element->state_size)
|
||||||
{
|
|
||||||
return element->state[id];
|
return element->state[id];
|
||||||
}
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue