Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to Intercept touch input on Windows 8
    primarykey
    data
    text
    <p>I'm writing Windows 8 desktop app and would like it to pop up when user taps the screen with (for example) 4 fingers. I've found this question:</p> <p><a href="https://stackoverflow.com/questions/14297322/how-to-detect-tapping-touch-input-globally-instead-of-mouse-clicking/14304825#14304825">How to detect tapping (touch input) globally instead of mouse clicking?</a></p> <p>the answer offers 3 solutions. The first one is not good for me since I'd like to write app that works on each Win8 tablet.</p> <p>The second one (RegisterPointerInputTarget) works excellent (my app intercepts all possible touch input, even when the start panel is active or a metro app is running), but the Windows itself begins to lack some touch capabilities (e.g. I cannot scroll the start panel with my finger anymore). I've tried to inject the touch input back, but with no luck at all:</p> <pre><code>if (message &gt;= 0x0241 &amp;&amp; message &lt;= 0x024F) { DWORD pointerID = LOWORD (wParam); POINTER_TOUCH_INFO pti; GetPointerTouchInfo (pointerID, &amp;pti); InjectTouchInput (1, &amp;pti); } </code></pre> <p>(and yes, I've called InitializeTouchInjection (10, 0x3); before) Also, I personally don't like this way since the docs say that just one window can register itself for the pointer input. So I don't want my app to occupy such a resource.</p> <p>The third solution (hooks) works good, but I cannot intercept touch from a metro app or the start panel.</p> <p>Does anyone know how to correctly intercept all the touch input on Windows 8? uiAccess=true is not a problem, since my app will be signed. Thanks.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload