Example #1
0
        public void ConsumePress(StylusState stylus, DigitizerEventKeyCode code)
        {
            var eligibleControls = GetControlsAtPoint(stylus.DevicePosition);

            foreach (var control in eligibleControls)
            {
                control.OnPress(stylus, code);
            }
        }
Example #2
0
        public void ConsumeRelease(StylusState stylus, DigitizerEventKeyCode code)
        {
            var eligibleControls = GetControlsAtPoint(stylus.GetDevicePosition());

            foreach (var control in eligibleControls)
            {
                control.OnRelease(stylus, code);
            }
        }
Example #3
0
 public StylusPressEventArgs(StylusState stylus, DigitizerEventKeyCode code)
 {
     Stylus = stylus;
     Code   = code;
 }