On Thu, 23 Dec 2010 17:32:16 +0900 Jeonghyun Yun <jh0506....@samsung.com> said:
hey jeonghyun! some more issues :) formatting and... why? this line makes little sense. can you explain given that prev_mx/my are set on a multitouch-down event and this COULD be at 0,0 - legitimately: + if( it->wd->prev_mx * it->wd->prev_my == 0 ) return; also here you take the device id of the first non-zero multi-touch id, but then only use that one during the life of the widget. it doesn't seem right: + if (it->wd->multi_device == 0) it->wd->multi_device = ev->device; if you want to do this kind of dynamic device id recognition at least reset device id in widget to 0 each multi up (of the selected device id that was down) so it can re-select each multi-press and not once ever. also device id 0 is the "mouse" so ignore device id 0 stuck if u are handling mouse down/up/move events too. other than that it's improved - can you fix these above? > Thanks for your advice about patch. > > I fixed below according to your advice. > > 1. check device id in multi up/down/move callbacks. > 2. I made _multi_touch_motion_eval() function, > this function called by both mouse_up and multi_up. > > If this patch have another issue, please let me know. > > Thank you. > > -----Original Message----- > From: Carsten Haitzler (The Rasterman) [mailto:ras...@rasterman.com] > Sent: Tuesday, December 21, 2010 5:54 PM > To: Jeonghyun Yun > Cc: 'Daniel Juyung Seo'; enlightenment-devel@lists.sourceforge.net > Subject: Re: [E-devel] [Patch] elm_genlist multi-touch smart callbacks added > > On Mon, 20 Dec 2010 15:56:11 +0900 Jeonghyun Yun <jh0506....@samsung.com> > said: > > problem in code for patch... in your multi up/dwon/move callbacks you don't > check the device id. as such the core mouse or first touch is device "0" so > you > don't see multi events for it, but devices 1, 2, 3 etc. are the extra touch > points. your patch will get confused if you have 3 fingers on the screen as > it > will handle both finger #2 and #3 in those events, so you should have a if > (ev->device != 1) return; or something like that (to only handle the 2nd > touch > point). > > another problem. you trigger this only on the "up" of the "2nd > finger" (assuming the above is fixed). what you need to do it handling this > on > ALL "up" events - mouse AND multi.. and IF no more fingers are touching on > one > of those up events (that means its the last finger to release), THEN figure > out > what to do. so you need to track the down state of main mouse and multi > event > with some flags/booleans and when both are false/0/off then both fingers are > released and you can check what to do. you already do it for multi with > wd->multitouched. make this as above for both mouse and multi and then a > separate "eval" call to evaluate what kind of motion the fingers did and > you're > looking good. > > can you re-submit the patch with the above fixes? > > > Hello, > > > > I modified name and added doxyen. Please refer to below. > > > > "multi,swipe,left" - This is called when the genlist is multi-touch swiped > > left. > > "multi,swipe,right" - This is called when the genlist is multi-touch > swiped > > right. > > "multi,swipe,up" - This is called when the genlist is multi-touch swiped > up. > > "multi,swpie,down" - This is called when the genlist is multi-touch swiped > > down. > > "multi,pinch,out" - This is called when the genlist is multi-touch pinched > > out. > > "multi,pinch,in" - This is called when the genlist is multi-touch pinched > > in. > > > > If this patch have any issue, please let me know. > > > > Thank you. > > > > -----Original Message----- > > From: Daniel Juyung Seo [mailto:seojuyu...@gmail.com] > > Sent: Monday, December 20, 2010 2:53 PM > > To: Jeonghyun Yun > > Cc: enlightenment-devel@lists.sourceforge.net > > Subject: Re: [E-devel] [Patch] elm_genlist multi-touch smart callbacks > added > > > > Hello, > > > > How about using below names for smart callbacks? > > > > "multi,swipe,left" - Genlist has been multi-touch swept left. > > "multi,swipe,right" - Genlist has been multi-touch swept right. > > "multi,swipe,up" - Genlist has been multi-touch swept top. > > "multi,swpie,down" - Genlist has been multi-touch swept bottom. > > "multi,pinch,out" - Genlist has been multi-touch pinched out. > > "multi,pinch,in" - Genlist has been multi-touch pinched in. > > > > Because there is a "swipe" smart callbacks, I think we can use the > > name "swipe" here too. > > > > And Mr. Yun, can you add doxygen for those events as well? > > Please add smart callback doxygen to elm_genlist.c. > > You can see existing doxygens at the top of elm_genlist.c > > So you may add "multi,**" doxygens around line number 78~80. > > > > Thank you. > > Daniel Juyung Seo (SeoZ) > > > > > > > > On Fri, Dec 17, 2010 at 5:28 PM, Jeonghyun Yun <jh0506....@samsung.com> > > wrote: > > > Dear SeoZ, > > > > > > Yes. I agree about using up & down instead of top & bottom. > > > > > > And I'm also not sure but 'sweep' is not bad. > > > Also 'move' is a good name. Then how about 'dragged'? > > > > > > I don't know well. Anybody please suggest a good name. > > > > > > Thanks. > > > > > > -----Original Message----- > > > From: Daniel Juyung Seo [mailto:seojuyu...@gmail.com] > > > Sent: Friday, December 17, 2010 4:40 PM > > > To: Jeonghyun Yun > > > Cc: enlightenment-devel@lists.sourceforge.net > > > Subject: Re: [E-devel] [Patch] elm_genlist multi-touch smart callbacks > > added > > > > > > Dear Yun, > > > > > > How about renaming some callbacks? > > > "multi,sweep,top" => "multi,sweep,up" > > > "multi,sweep,bottom" => "multi,sweep,down" > > > Multi touch event cares only for the touch behavior not the callback's > > > behavior. > > > > > > And I'm not sure it is ok to use the word 'sweep'. > > > Anybody please suggest a good name for this. Maybe 'move'? > > > I'm not sure about this. > > > > > > Anyway thanks for your effort. > > > Daniel Juyung Seo. (SeoZ) > > > > > > > > > On Fri, Dec 17, 2010 at 11:48 AM, Jeonghyun Yun <jh0506....@samsung.com> > > > wrote: > > >> Dear all, > > >> > > >> I added 6 multi-touch smart callbacks in elm_genlist, please refer to > > > below. > > >> > > >> "multi,sweep,left" - Genlist has been multi-touch swept left. > > >> "multi,sweep,right" - Genlist has been multi-touch swept right. > > >> "multi,sweep,top" - Genlist has been multi-touch swept top. > > >> "multi,sweep,bottom" - Genlist has been multi-touch swept bottom. > > >> "multi,pinch,out" - Genlist has been multi-touch pinched out. > > >> "multi,pinch,in" - Genlist has been multi-touch pinched in. > > >> > > >> I think these smart callbacks are very useful for elm_genlist > multi-touch > > >> effect. > > >> > > >> If this patch have any issue, please let me know. > > >> > > >> Thanks. > > >> > > >> > > > > > > ---------------------------------------------------------------------------- > > > -- > > >> Lotusphere 2011 > > >> Register now for Lotusphere 2011 and learn how > > >> to connect the dots, take your collaborative environment > > >> to the next level, and enter the era of Social Business. > > >> http://p.sf.net/sfu/lotusphere-d2d > > >> _______________________________________________ > > >> enlightenment-devel mailing list > > >> enlightenment-devel@lists.sourceforge.net > > >> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > > >> > > >> > > > > > > > > > -- > ------------- Codito, ergo sum - "I code, therefore I am" -------------- > The Rasterman (Carsten Haitzler) ras...@rasterman.com -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) ras...@rasterman.com ------------------------------------------------------------------------------ Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel