Tap And Hold With Keys Events

  • Thread starter Thread starter Cocotteseb
  • Start date Start date
C

Cocotteseb

Hello,

I would like to display the tap and hold animation (dots circle) when
a hardware button is pressed. I'm not really sure about the key event
I should use: KeyPress, KeyUp or KeyDown.

After many search on the Internet, I do now find something that helps
me. (I've maybe not check the right places too)
What I find concerns only the MouseDown event in which we P/Invoke
SHRecognizeGesture to determine if it is " a tap and hold" in order to
show the context menu.

In other words when the user presses an hardware button, the dots
begin to appear one by one and then the context menu is shown. I hope
it is quite clear.

Thank you for your help in advance!
Cocotteseb
 
I'd be inclined to, in the handler for the hardware button, send a
mouse_event() to press the mouse. Normally, you'd probably want to do this
in a key-down event and release the mouse in a key-up event. How are you
going to figure out where this mouse press is supposed to happen, though?
This seems unlikely to result in a good user interface, though. The user's
going to need some sort of control over selecting menu items anyway, so I'm
not sure why he wouldn't just do the whole process, tap-and-hold and menu
select, with that, rather than a key then a stylus.

Paul T.
 
Back
Top