Example #1
0
        protected override void OnMouseUp(MouseEventArgs e)
        {
            var p = new Point((int)(e.Point().X / DownScale), (int)(e.Point().Y / DownScale));

            if (FleuxApplication.HorizontalMirror)
            {
                p.X = offBmpWidth - p.X - 1;
            }
            if (FleuxApplication.VerticalMirror)
            {
                p.Y = offBmpHeight - p.Y - 1;
            }
            this.gestures.MouseUp(p.ToLogic());
            base.OnMouseDown(e);
        }
Example #2
0
        protected override void OnMouseDown(MouseEventArgs e)
        {
            var p = new Point((int)(e.Point().X / DownScale), (int)(e.Point().Y / DownScale));

            if (FleuxApplication.HorizontalMirror)
            {
                p.X = offBmpWidth - p.X - 1;
            }
            if (FleuxApplication.VerticalMirror)
            {
                p.Y = offBmpHeight - p.Y - 1;
            }
            this.gestures.MouseDown(p.ToLogic());
            if (FleuxSettings.HapticFeedbackMode == FleuxSettings.HapticOptions.AnyPress)
            {
                FleuxApplication.Led.Vibrate();
            }
            base.OnMouseDown(e);
        }