Polls all input devices one by one.
The input event is returned here.
1 if there's more, 0 if all input events have been processed, or a specific error code.
See Implementation
Polls all input devices one by one.