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

Method IR_OnMouseMove

ogsr_engine/xrGame/Level_input.cpp:84–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82void CLevel::IR_OnMouseHold(int btn) { IR_OnKeyboardHold(mouse_button_2_key[btn]); }
83
84void CLevel::IR_OnMouseMove(int dx, int dy)
85{
86 if (CImGuiEditor::Get().Editor_MouseMove(dx, dy))
87 return;
88
89 if (g_bDisableAllInput)
90 return;
91 if (HUD().GetUI()->IR_OnMouseMove(dx, dy))
92 return;
93 if (Device.Paused())
94 return;
95
96 if (Actor())
97 Actor()->callback(GameObject::eOnMouseMove)(dx, dy);
98
99 if (CURRENT_ENTITY())
100 {
101 IInputReceiver* IR = smart_cast<IInputReceiver*>(smart_cast<CGameObject*>(CURRENT_ENTITY()));
102 if (IR)
103 IR->IR_OnMouseMove(dx, dy);
104 }
105}
106
107// Обработка нажатия клавиш
108extern bool g_block_pause;

Callers

nothing calls this directly

Calls 6

GetFunction · 0.85
ActorFunction · 0.85
Editor_MouseMoveMethod · 0.80
GetUIMethod · 0.80
PausedMethod · 0.80
callbackMethod · 0.45

Tested by

no test coverage detected