MCPcopy Create free account
hub / github.com/RenderKit/embree / keypressed

Method keypressed

tutorials/collide/collide.cpp:179–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177#if defined(USE_GLFW)
178
179 void keypressed(int key) override
180 {
181 if (key == 32 /* */) initializeClothPositions ((collide2::ClothModel &) (*meshes[clothID]));
182 if (key == 80 /*p*/) { pause = !pause; }
183 if (pause == true && key == 78 /*n*/) { updateScene (); }
184 else TutorialApplication::keypressed(key);
185 }
186#endif
187
188 };

Callers

nothing calls this directly

Calls 2

initializeClothPositionsFunction · 0.85
updateSceneFunction · 0.85

Tested by

no test coverage detected