public static void OnUpdate(float dt) { foreach (IInputSink current in Editor.GetInputs()) { current.Update(dt); } }
public static void OnEditorEvent(uint eventType, IntPtr eventPtr) { foreach (IInputSink current in Editor.GetInputs()) { current.OnEditorEvent(eventType, eventPtr); } }
public static void OnMouseEvent(Editor.MouseEvent mouseEvent, MouseEventArgs mouseEventArgs) { foreach (IInputSink current in Editor.GetInputs()) { if (current.OnMouseEvent(mouseEvent, mouseEventArgs)) { break; } } }
public static void OnKeyEvent(Editor.KeyEvent keyEvent, KeyEventArgs keyEventArgs) { if (Editor.IsIngame) { if (keyEvent == Editor.KeyEvent.KeyUp && keyEventArgs.KeyCode == Keys.Escape) { Editor.ExitIngame(); return; } } else { foreach (IInputSink current in Editor.GetInputs()) { if (current.OnKeyEvent(keyEvent, keyEventArgs)) { break; } } } }