internal ContactEventArgs(ContactData contact, IntPtr relativeTo, long timestamp) { Contact = new Contact(contact, relativeTo, timestamp); }
private HidContactInfo CreateContact(HidContactState state, int id, int x, int y, int width, int height) { long timestamp = Stopwatch.GetTimestamp(); ContactData data = new ContactData(); data.Id = id; data.Position = new Point(x, y); data.MajorAxis = width; data.MinorAxis = height; data.Area = width * height; Contact contact = new Contact(data, IntPtr.Zero, timestamp); HidContactInfo hidContactInfo = new HidContactInfo(state, contact); return hidContactInfo; }