Exemplo n.º 1
0
        public void MouseWheel(MouseWheelEventArgs args)
        {
            var control = MouseGetControl(args.Position);

            if (control == null)
            {
                return;
            }

            args.Handle();

            var guiArgs = new GUIMouseWheelEventArgs(args.Delta, control,
                                                     args.Position / UIScale, args.Position,
                                                     args.Position / UIScale - control.GlobalPosition, args.Position - control.GlobalPixelPosition);

            _doMouseGuiInput(control, guiArgs, (c, ev) => c.MouseWheel(ev), true);
        }