MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / keyboardEvent

Method keyboardEvent

testbed/scenes/raycast/RaycastScene.cpp:351–360  ·  view source on GitHub ↗

Called when a keyboard event occurs

Source from the content-addressed store, hash-verified

349
350// Called when a keyboard event occurs
351bool 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected