MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / IR_OnKeyboardPress

Method IR_OnKeyboardPress

ogsr_engine/xrGame/MainMenu.cpp:267–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265void CMainMenu::IR_OnMouseStop(int x, int y){};
266
267void CMainMenu::IR_OnKeyboardPress(int dik)
268{
269 if (!IsActive())
270 return;
271
272 if (is_binded(kCONSOLE, dik))
273 {
274 Console->Show();
275 return;
276 }
277 if (DIK_F12 == dik)
278 {
279 Render->Screenshot();
280 return;
281 }
282
283 if (MainInputReceiver())
284 MainInputReceiver()->IR_OnKeyboardPress(dik);
285};
286
287void CMainMenu::IR_OnKeyboardRelease(int dik)
288{

Callers

nothing calls this directly

Calls 4

IsActiveFunction · 0.85
is_bindedFunction · 0.85
ShowMethod · 0.45
ScreenshotMethod · 0.45

Tested by

no test coverage detected