how to create a double_tap event? 
Posted: 18 November 2010 10:40 PM   [ Ignore ]
Rank
Joined  2010-04-29
Total Posts:  34
New Member

how to create a double tap event ,who can give me a example!
thanks

Profile
 
 
Posted: 19 November 2010 12:40 AM   [ Ignore ]   [ # 1 ]
Avatar
RankRankRankRank
Joined  2006-11-09
Total Posts:  1499
Administrator

Well what type of input are you using? Native Touch Events (Win7) or TUIO etc...?

 Signature 

~

Profile
 
 
Posted: 19 November 2010 02:01 AM   [ Ignore ]   [ # 2 ]
Avatar
RankRankRank
Joined  2008-12-27
Total Posts:  262
Moderator

In any on_touch_*, you can do:

def on_touch_down(selftouch):
  if 
touch.is_double_tap:
    print 
'this is a double tap'
  
else:
    print 
'this is not a double tap'

 Signature 

Kivy | PyMT | Movid

Profile
 
 
Posted: 19 November 2010 04:34 AM   [ Ignore ]   [ # 3 ]
Rank
Joined  2010-04-29
Total Posts:  34
New Member

thanks! I will try.

Profile