* Is input available? * @return \c 0 if no input, else a value. */
| 539 | * @return \c 0 if no input, else a value. |
| 540 | */ |
| 541 | uint16 Input_IsInputAvailable(void) |
| 542 | { |
| 543 | uint16 value; |
| 544 | |
| 545 | value = s_historyHead ^ s_historyTail; |
| 546 | |
| 547 | return Input_AddHistory(value); |
| 548 | } |
| 549 | |
| 550 | /** |
| 551 | * Wait for input, and return the read event. |
no test coverage detected