public static void Register(SystemCallback function, int n) { for (int i = 1; i <= n; i++) { function(); } }
private void RaiseClick(ControlCallbackContext context) { Click?.Invoke(this, EventArgs.Empty); Window.Game?.Audio.PlayAudioEvent(Window.ContentManager.IniDataContext.MiscAudio.GuiClickSound); SystemCallback.Invoke( this, new WndWindowMessage(WndWindowMessageType.SelectedButton, this), context); }
private void RaiseClick(ControlCallbackContext context) { Click?.Invoke(this, EventArgs.Empty); Window.Game?.Audio.PlayAudioEvent(Window.Game.AssetStore.MiscAudio.Current.GuiClickSound.Value); SystemCallback.Invoke( this, new WndWindowMessage(WndWindowMessageType.SelectedButton, this), context); }
public override void SetExecutionResult(int result) { SystemCallback.SetExecutionResult(result); }
public override void GetExecutionParameters(out int method, out dynamic[] parameters) { SystemCallback.GetExecutionParameters(out method, out parameters); }
public override bool OnUserMessage(int wParam) { return(SystemCallback.OnUserMessage(wParam)); }
public override void SetWndProcHookAddr(int addr) { SystemCallback.SetWndProcHookAddr(addr); }
public override void OnException(Exception ex) { SystemCallback.OnException(ex); StopIPCServer(); }
protected WindowsHook(HookType hookType, UserCallback userCallback) { this.hookType = hookType; this.userCallback = userCallback; this.systemCallback = Callback; }
private static extern IntPtr SetWindowsHookEx(int idHook, SystemCallback callback, IntPtr hInstance, int threadId);
private static extern Result FMOD_System_SetCallback(IntPtr system, SystemCallback callback, SystemCallbackType callbackmask);