| 251 | } |
| 252 | |
| 253 | void OnKeyPressed( int key, int action ){ |
| 254 | const char* key_name = GetKeyName(key); |
| 255 | if (key_name == 0) { |
| 256 | return; |
| 257 | } |
| 258 | if (action == GLFW_PRESS) { |
| 259 | printf("'%s' (%i) key is pressed\n", key_name, key); |
| 260 | } |
| 261 | if (action == GLFW_RELEASE) { |
| 262 | printf("'%s' (%i) key is released\n", key_name, key); |
| 263 | } |
| 264 | if (action == GLFW_RELEASE && key == GLFW_KEY_ENTER) { |
| 265 | PullInfo(); |
| 266 | } |
| 267 | } |
| 268 | |
| 269 | int OnClose(){ |
| 270 | printf("Closed\n"); |
nothing calls this directly
no test coverage detected