private static void MouseDownAction(object Sender, MouseEventArgs e) { if (!ScreenTools.IsDiabloFocused()) { return; } if (e.Button == MouseButtons.Left) { IsLButtonDown = true; } else if (e.Button == MouseButtons.Right) { IsRButtonDown = true; } else if (e.Button == MouseButtons.Middle) { IsMButtonDown = true; } else if (e.Button == MouseButtons.XButton1) { IsXButton1Down = true; } else if (e.Button == MouseButtons.XButton2) { IsXButton2Down = true; } HotkeyManager.ProcessMouseAction(e.Button, IsCtrlDown, IsShiftDown, IsAltDown); }
public static void Action(Message m) { if (m.Msg == 0x0312) { if (!ScreenTools.IsDiabloFocused()) { return; } HotkeyManager.ProcessKeyboardAction(m.WParam.ToInt32()); } }