MCPcopy Create free account
hub / github.com/NVIDIA-RTX/RTXPT / KeyboardUpdate

Method KeyboardUpdate

Rtxpt/SampleGame/GameScene.cpp:362–374  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

360}
361
362bool GameScene::KeyboardUpdate(int key, int scancode, int action, int mods)
363{
364 if (CameraActive())
365 m_gameCamera.KeyboardUpdate(key, scancode, action, mods);
366
367 //if (key == GLFW_KEY_SPACE && action == GLFW_PRESS && mods == GLFW_MOD_CONTROL)
368 // m_recordCamera = true;
369
370 if (!IsActive())
371 return false;
372
373 return false;
374}
375void GameScene::MousePosUpdate(double xpos, double ypos)
376{
377 if (CameraActive())

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected