Updates timing info for keys
| 303 | |
| 304 | // Updates timing info for keys |
| 305 | void ddio_UpdateKeyState(int key, bool isdown) { |
| 306 | if (isdown) { |
| 307 | if (!DDIO_key_state[key]) { |
| 308 | ddio_AddKeyToQueue(key); |
| 309 | DDIO_key_down_count[key]++; |
| 310 | } |
| 311 | DDIO_key_state[key] = 1; |
| 312 | } else { |
| 313 | DDIO_key_state[key] = 0; |
| 314 | } |
| 315 | } |
| 316 | |
| 317 | //////////////////////////////////////////////////////////////////////////////// |
| 318 |
no test coverage detected