OUR NETWORK:MediaSmart Home Sansa Community Explore3DTV TechLore RoboCommunity About UsAdvertiseContact Us

Unanswered questions in driver behavior

 
Learn about scoring Download Discussion's Raw Score: 48167.9
May 1, 2009 05:24 PM
Rating (0 votes)
Rate This!

Member Avatar

BobRas

Member

The HP document explains how to get dual-touch events at the Windows message level. This works as documented (even outside the TouchSmart environment). But many things are not addressed:

 1) What should be the return code when I process one of these messages? Will this affect what happens to the event?

 2) Should I call the default window procedure?

 3) If I get a dual-touch event, will I also get a WM_MOUSEMOVE, etc.? Is this dependent on the answers to questions 1 and 2?

 4) What if I get a standard mouse-down message first, turn on CaptureMouse, and then put my second finger down? What events will I get?

 5) Will I always get a mouse-down before a mouse-move?

6) Will I always get a mouse-up after a mouse-down? After a mouse-move?

These are all important considerations for anything more than trivial use of dual touch.

Discussion:    Add a Comment | Comments 1-2 of 2 | Latest Comment

View unverified member's comment - posted by steverez

November 4, 2009 3:16 PM

The answers are here:
1). Those messages are coming to your window as postmessages. The return values after you handle the message are not relavent at this point and doesn't affect in any way.
2). Remeber these are Registered Window Messages. The default window procedure doesn't understand these messages.
3). You get mouse messages from operating system where as the dual touch messages are not from OS but from a custom process provided by HP.
4). you won't get the the mouse-down when it is going to be a multi-touch message. But once you get the either of messages the same session will continue until your finger leaves the touch screen.
5). Yes you get the mouse-down before mouse move.
6). The sequence is always true. Mouse-down -> Mouse-move (optional happens only when you move he finger)->Mouse Up.

Discussion:    Add a Comment | Comments 1-2 of 2 | Latest Comment

Add Your Reply

(will not be displayed)

Email me when comments are added to this thread

 
 

Please log in or register to participate in this community!

Log In

Remember

Not a member? Sign up!

Did you forget your password?

You can also log in using OpenID.

close this window
close this window