Questions tagged [wm-touch]

Message used for Windows Touch (WM_TOUCH).

9 questions
7
votes
2 answers

WM_TOUCH vs WM_POINTER

Which one should I use? I'm only using Windows 8.x, so I don't care about the fact that WM_POINTER is not backwards compatible with Windows 7 etc. I also don't care about gestures; only about raw touches. WM_POINTER's only clear advantage seems to…
Display Name
  • 2,323
  • 1
  • 26
  • 45
4
votes
0 answers

Why is WM_TOUCH not received when I do something lengthy in the touch down event?

I am subclassing a window, and I process the WM_TOUCH messages. When I receive a WM_TOUCH message, I call Dim RetVal& RetVal = GetTouchInputInfo(hTouchInput, TouchPoints, tiTouchInput(1&), LenB(tiTouchInput(1&))) (I have stripped down my lengthy…
tmighty
  • 10,734
  • 21
  • 104
  • 218
2
votes
1 answer

(How) Can I emulate touch events on Windows?

A utility which I wrote in C++ for testing purposes currently uses the SendInput function to emulate user input, i.e. mouse and keyboard events. I'd now like to extend my program such that it's able to emulate touch events, such that I can verify…
Frerich Raabe
  • 90,689
  • 19
  • 115
  • 207
1
vote
1 answer

Delphi VCL - WM_Touch RegisterTouchWindow(Handle, 0); message won't process when touching panel

I am using Delphi 10.1 Berlin, VCL project. I am attempting to move multiple panels at the same time using a touchscreen and the WM_Touch messages generated from Windows. I based it off the example code from Chris Benson's blog:…
Ben Palmer
  • 11
  • 1
1
vote
1 answer

c# WM_TOUCH Messages in WndProc and PreFilterMessage

I'm experimenting with WM_TOUCH messages to capture touch events in my application. I want to register for example a "3 Finger Swipe" gesture and because that was not given in the WM_GESTURE I started experimenting with WM_TOUCH. I found this…
KArlk.
  • 39
  • 1
  • 9
0
votes
0 answers

Implement zoom with WM_TOUCH

I need to implement a zoom in/out in a Windows Apllication which runs on a multi-touch screen. After some progress, I understand I can't have both WM_GESTURE and WM_TOUCH at the same time. Before I was catching WM_GESTURE and then checking if…
Rui Campião
  • 306
  • 1
  • 3
  • 10
0
votes
1 answer

WM_TOUCH acts differetly in Windows-8.1

I have a Windows application using WM_TOUCH message to handle touch screen. It works fine in Windows 7 and Windows 8.0. In Win 8.1 the WM_TOUCH behaves differently: Win7: WM_TOUCH with flag eTouchDown is continuously received when I touch the…
0
votes
1 answer

Windows multi touch TOUCHEVENTF_UP not received

I am working on an app for Windows that supports multitouch. I have followed the guide found here http://msdn.microsoft.com/en-us/library/windows/desktop/dd744775(v=vs.85).aspx but i have a problem. At some point there is a stuck finger meaning that…
thodoris
  • 69
  • 8
0
votes
1 answer

Creating a WM_TOUCH message for PostMessage() in C# / .NET

(For background, see Composing a WM_TOUCH message for SendMessage(), Kinect as a multi-touch device which asks basically the same question as mine but whose accepted answer doesn't actually answer the question. The tricky bit isn't filling in…
Gareth McCaughan
  • 19,888
  • 1
  • 41
  • 62