#1
|
|||
|
|||
Touch functionality
Hello,
I have been working with the touch functionality and have played with viztouch. I haven't installed the latest version of Vizard yet, so I am at risk this has already been solved, but I will go for it anyway. If you use Vizard on Windows 7 with a touch screen there is mouse emulation. The problem with mouse emulation is that when you touch the screen, no mouse down is generated. It will try to distinguish between a left click, right click or drag. In the current version of viztouch (that I use) it leaves the mouse emulation on. That means that for the first touch it uses the mouse emulation and for the dual and multi touches you will get the raw touchpoints. It is possible to turn the mouse emulation of by using RegisterTouchWindow(hWnd, TWF_WANTPALM). If you do this, even the normal mouse_up, mouse_down and mouse_move events are enough for a single touch screen. So I would like the option to turn off the mouse emulation in viztouch. And maybe an extra mode, like MODE_SINGLETOUCH that just disables the mouse emulation. |
#2
|
|||
|
|||
Hmm... Did some more experimenting. But only doing the RegisterTouchWindow with TMF_WANTPALM, does not let the mouse_down work as I thought. It will not directly generate a mouse down when the screen is touched. But it still should immediatly generate a touch down.
|
#3
|
|||
|
|||
The TMF_WANTPALM flag seems to just disable filtering of palm touches, resulting in slightly lower delays for touch events. I can add an option for using this flag, but I'm still not sure how to disable mouse emulation.
|
#4
|
|||
|
|||
You are right. It does not disable the mouse emulation. But it is less obtrusive when you use the flag. My current project is not usable if the flag is not set, because I will miss too many touch points. So I would really like support for the TMF_WANTPALM flag.
|
#5
|
|||
|
|||
The value of the TWF_WANTPALM flag is 2. So for now you can modify viztouch.py by changing line 268 to:
Code:
ctypes.windll.user32.RegisterTouchWindow(e.hWnd,2) |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Feedback on debugger functionality | dcnieho | Vizard | 0 | 05-20-2011 11:36 PM |
assigning the mouse functionality to Keyboard events | jaffaaswami | Vizard | 2 | 10-07-2010 11:58 PM |
assigning the mouse functionality to Keyboard events | jaffaaswami | Vizard | 0 | 10-06-2010 07:49 AM |
Mimicing Haptic Touch Events | njstaley | Vizard | 1 | 06-29-2010 03:58 PM |
Adding USB functionality to Vizard | rubberpimple | Plug-in development | 2 | 01-25-2008 03:59 PM |