internal MouseState(MouseHook hook) { locker = new object(); states = new Dictionary<MouseButton, bool>(); foreach (MouseButton button in Enum.GetValues(typeof(MouseButton))) states.Add(button, false); hook.MouseDown += MouseDownHandler; hook.MouseUp += MouseUpHandler; }
internal MouseState(MouseHook hook) { locker = new object(); states = new Dictionary <MouseButton, bool>(); foreach (MouseButton button in Enum.GetValues(typeof(MouseButton))) { states.Add(button, false); } hook.MouseDown += MouseDownHandler; hook.MouseUp += MouseUpHandler; }