| 1077 | } |
| 1078 | |
| 1079 | static int GetKeyPressed() |
| 1080 | { |
| 1081 | int key = 0; |
| 1082 | int i; |
| 1083 | |
| 1084 | unsigned int keys_nr = *GetKeyboard_nr(); |
| 1085 | |
| 1086 | for (i = 0; i < 256 && !key; ++i) |
| 1087 | { |
| 1088 | if (IsNewpressed(i)) |
| 1089 | { |
| 1090 | key = i; |
| 1091 | } |
| 1092 | } |
| 1093 | |
| 1094 | return key; |
| 1095 | } |
| 1096 | |
| 1097 | static int NothingPressed() |
| 1098 | { |
no test coverage detected