Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
        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;
        }