void on_double_clicked() { FUtil.SafeSendEvent(OnDoubleClicked, this, new EventArgs()); }
// Update is called once per frame public void Update() { ThreadMailbox.ProcessMainThreadMail(); // is this the right spot to do this? FPlatform.IncrementFrameCounter(); if (FPlatform.IsWindowResized()) { FUtil.SafeSendAnyEvent(OnWindowResized); } // update our wrappers around various different Input modes InputExtension.Get.Update(); // update cockpit tracking and let UI do per-frame rendering computations if (options.EnableCockpit) { ActiveCockpit.Update(); } // hardcoded Q key quits app if (Input.GetKeyUp(KeyCode.Q)) { Cursor.lockState = CursorLockMode.None; GlobalControl.Quit(); } // run per-frame actions Action execActions = null; lock (nextFrameActions) { execActions = nextFrameActions.GetRunnable(); nextFrameActions.Clear(); } if (execActions != null) { execActions(); } // can either use spacecontrols or mouse, but not both at same time // [TODO] ask spatial input controller instead, it knows better (?) if (FPlatform.IsUsingVR() && SpatialController.CheckForSpatialInputActive()) { Configure_SpaceControllers(); HandleInput_SpaceControllers(); } else if (FPlatform.IsTouchDevice()) { Configure_TouchInput(); HandleInput_Touch(); } else { Configure_MouseOrGamepad(); HandleInput_MouseOrGamepad(); } // after we have handled input, do per-frame rendering computations if (options.EnableCockpit) { ActiveCockpit.PreRender(); } ToolManager.PreRender(); Scene.PreRender(); }
void on_clicked() { begin_editing(); FUtil.SafeSendEvent(OnClicked, this, new EventArgs()); }
void remove_key(double time) { Keys.Remove(time); FUtil.SafeSendEvent(ModifiedEvent, this, null); }
void add_or_update_key(Keyframe f) { Keys[f.Time] = f; FUtil.SafeSendEvent(ModifiedEvent, this, null); }
public void selected(object sender) { FUtil.SafeSendEvent(OnSelected, sender, new EventArgs()); }
protected virtual void OnSceneChanged(SceneObject so, SceneChangeType type) { FUtil.SafeSendAnyEvent(ChangedEvent, this, so, type); }
protected virtual void OnSelectionChanged(EventArgs e) { FUtil.SafeSendEvent(SelectionChangedEvent, this, e); }
private void Context_OnWindowResized() { DebugUtil.Log(2, "WINDOW RESIZE EVENT"); FUtil.SafeSendAnyEvent(OnContainerBoundsModified, this); }
public void Dismiss() { FUtil.SafeSendEvent(OnDismissed, this, new EventArgs()); }