MCPcopy Create free account
hub / github.com/Illation/ETEngine / OnKeyEvent

Method OnKeyEvent

Engine/source/EtEditor/Tools/SceneViewport.cpp:257–269  ·  view source on GitHub ↗

------------------------------------ SceneViewport::OnKeyEvent

Source from the content-addressed store, hash-verified

255// SceneViewport::OnKeyEvent
256//
257bool SceneViewport::OnKeyEvent(bool const pressed, GdkEventKey* const evnt)
258{
259 if (pressed)
260 {
261 core::InputManager::GetInstance()->OnKeyPressed(GtkUtil::GetKeyFromGtk(evnt->keyval));
262 }
263 else
264 {
265 core::InputManager::GetInstance()->OnKeyReleased(GtkUtil::GetKeyFromGtk(evnt->keyval));
266 }
267
268 return true;
269}
270
271//------------------------------------
272// SceneViewport::InitCamera

Callers

nothing calls this directly

Calls 2

OnKeyPressedMethod · 0.80
OnKeyReleasedMethod · 0.80

Tested by

no test coverage detected