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

Method IR_OnKeyboardHold

ogsr_engine/xrGame/ui/UIDialogWnd.cpp:39–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39bool CUIDialogWnd::IR_OnKeyboardHold(int dik)
40{
41 if (!IR_process())
42 return false;
43 if (OnKeyboardHold(dik))
44 return true;
45
46 if (!StopAnyMove() && g_pGameLevel)
47 {
48 CObject* O = Level().CurrentEntity();
49 if (O)
50 {
51 IInputReceiver* IR = smart_cast<IInputReceiver*>(smart_cast<CGameObject*>(O));
52 if (!IR)
53 return (false);
54 IR->IR_OnKeyboardHold(get_binded_action(dik));
55 }
56 }
57 return false;
58}
59
60#define DOUBLE_CLICK_TIME 250
61

Callers

nothing calls this directly

Calls 1

get_binded_actionFunction · 0.85

Tested by

no test coverage detected