public void ConsumePress(StylusState stylus, DigitizerEventKeyCode code) { var eligibleControls = GetControlsAtPoint(stylus.DevicePosition); foreach (var control in eligibleControls) { control.OnPress(stylus, code); } }
public void ConsumeRelease(StylusState stylus, DigitizerEventKeyCode code) { var eligibleControls = GetControlsAtPoint(stylus.GetDevicePosition()); foreach (var control in eligibleControls) { control.OnRelease(stylus, code); } }
public StylusPressEventArgs(StylusState stylus, DigitizerEventKeyCode code) { Stylus = stylus; Code = code; }