| 142 | } |
| 143 | |
| 144 | bool CUIDialogWnd::IR_OnMouseMove(int dx, int dy) |
| 145 | { |
| 146 | if (!IR_process()) |
| 147 | return false; |
| 148 | |
| 149 | if (GetUICursor()->IsVisible()) |
| 150 | { |
| 151 | GetUICursor()->UpdateCursorPosition(dx, dy); |
| 152 | Fvector2 cPos = GetUICursor()->GetCursorPosition(); |
| 153 | |
| 154 | OnMouse(cPos.x, cPos.y, WINDOW_MOUSE_MOVE); |
| 155 | } |
| 156 | else if (!StopAnyMove() && g_pGameLevel) |
| 157 | { |
| 158 | CObject* O = Level().CurrentEntity(); |
| 159 | if (O) |
| 160 | { |
| 161 | IInputReceiver* IR = smart_cast<IInputReceiver*>(smart_cast<CGameObject*>(O)); |
| 162 | if (!IR) |
| 163 | return (false); |
| 164 | |
| 165 | IR->IR_OnMouseMove(dx, dy); |
| 166 | } |
| 167 | }; |
| 168 | |
| 169 | return true; |
| 170 | } |
| 171 | |
| 172 | bool CUIDialogWnd::OnKeyboardHold(int dik) |
| 173 | { |
nothing calls this directly
no test coverage detected