WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 04-18-2012, 01:31 AM
Joran Joran is offline
Member
 
Join Date: Jun 2006
Posts: 38
Send a message via Yahoo to Joran
Lightbulb 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.
Reply With Quote
  #2  
Old 04-18-2012, 02:40 AM
Joran Joran is offline
Member
 
Join Date: Jun 2006
Posts: 38
Send a message via Yahoo to Joran
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.
Reply With Quote
  #3  
Old 04-24-2012, 05:09 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
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.
Reply With Quote
  #4  
Old 04-25-2012, 01:07 AM
Joran Joran is offline
Member
 
Join Date: Jun 2006
Posts: 38
Send a message via Yahoo to Joran
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.
Reply With Quote
  #5  
Old 04-25-2012, 08:51 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
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)
There is also a TWF_FINETOUCH flag. I'm not sure how useful it is, but I'll probably add support for that as well.
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Feedback on debugger functionality dcnieho Vizard 0 05-20-2011 10:36 PM
assigning the mouse functionality to Keyboard events jaffaaswami Vizard 2 10-07-2010 10:58 PM
assigning the mouse functionality to Keyboard events jaffaaswami Vizard 0 10-06-2010 06:49 AM
Mimicing Haptic Touch Events njstaley Vizard 1 06-29-2010 02:58 PM
Adding USB functionality to Vizard rubberpimple Plug-in development 2 01-25-2008 02:59 PM


All times are GMT -7. The time now is 04:43 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC