Called when a keyboard event occurs
| 349 | |
| 350 | // Called when a keyboard event occurs |
| 351 | bool RaycastScene::keyboardEvent(int key, int /*scancode*/, int action, int /*mods*/) { |
| 352 | |
| 353 | // If the space key has been pressed |
| 354 | if (key == GLFW_KEY_SPACE && action == GLFW_PRESS) { |
| 355 | changeBody(); |
| 356 | return true; |
| 357 | } |
| 358 | |
| 359 | return false; |
| 360 | } |
nothing calls this directly
no outgoing calls
no test coverage detected