Invalid keycodes also return 0 (but print a msg in DEBUG).

This commit is contained in:
2018-03-25 15:34:53 +02:00
parent d871bcec41
commit fa9a35444b
2 changed files with 7 additions and 3 deletions

View File

@@ -53,7 +53,6 @@ void handle_event();
*
* @param code The key code.
*
* @return If down 1 will be returned, if the keycode is
* invalid then -1 is returned, else 0.
* @return If down 1 will be returned, else 0.
*/
int key_is_down(int code);