Mouse events for touchscreen gestures

This is an open question about touchscreens. Users interact with touchscreens differently from the mouse. For example, touchscreens have no equivalent of “mouse over”, scroll wheel or right click. But they do have their own characteristic gestures such as pinch zoom and multi-touch. I was wondering if wxpython supports these distinctively touchscreen gestures in any way? For example, any useful wx.Events? Or has anyone implemented custom Events for touchscreens?

Also, is there any way for a wxpython app to know whether it has a touchscreen available?

Peter Clarke

Try :
wx.EVT_ENTER_WINDOW
wx.EVT_LEAVE_WINDOW

These generate "i’m here"events.

along with…
wx.EVT_LEFT_UP
wx.EVT_LEFT_DOWN

These generate clicks on touch screens, for the most part.

hmmmm…probably not.
It’s python. write the touchscreen code yourself…

Hi,

···

On Thursday, November 21, 2013 5:47:47 PM UTC-6, Peter Clarke wrote:

This is an open question about touchscreens. Users interact with touchscreens differently from the mouse. For example, touchscreens have no equivalent of “mouse over”, scroll wheel or right click. But they do have their own characteristic gestures such as pinch zoom and multi-touch. I was wondering if wxpython supports these distinctively touchscreen gestures in any way? For example, any useful wx.Events? Or has anyone implemented custom Events for touchscreens?

Also, is there any way for a wxpython app to know whether it has a touchscreen available?

Peter Clarke

No, wxPython doesn’t support multi-touch to my knowledge. I don’t think it does pinch zoom either since that’s multi-touch related. If you need to do that, you’ll probably have to use Kivy. I did find this article:

http://gabe.shoutboot.com/2010/06/24/multitouch-and-wxwidgets-under-windows-7/

I can’t find any information about whether or not wxWidgets 3.x will have multi-touch support. If it doesn’t, then you’re probably out of luck unless you want to create your own abstraction layer.

Mike