c# - How can I create simulated contacts in a surface table application without the simulator? -
in microsoft surface 1.0 sdk project based on wpf, i'd transform contacts captured in small part of screen match whole screen (like virtual touchpad).
after capturing contact , transforming it's position , orientation send event queue. figured out there seems no way create "new contact()" or change in "readonlycontactcollection" (like it's name says).
here's trying do:
private void oncontactdown(object sender, contacteventargs e) { base.oncontactdown(e); e.contact.capture(this); // transform contact's center , orientation // , write them e.contact via own private method // e.contact = transformcontact(e.contact); // keep transformed contact in event queue // can processed @ it's new position e.handled = false; }
my next idea make use of simulator , automation create simulatedcontacts, sadly doesn't work on surface table itself, in simulator.
is there way send out "virtual" contacts (that don't exist in raw image) recognized surface (without use of simulator)? how surfaceinput.exe send out recognized contacts?
surface v1 doesn't officially support wpf 4.0, others have figured out how take surface v1 input , route standardized & extensible touch apis come wpf 4.0. take @ http://nui.joshland.org/2010/07/how-to-write-surface-applications-with.html creating custom "touch device" transforms surface input wpf 4.0 input events. following same approach, can create "touch device" on own in order pass in fake touches.
Comments
Post a Comment