On Sun, 20 Jan 2008 03:43:03 +0100 Tobias <[EMAIL PROTECTED]> babbled:
okies! :) included - but i put back the calibration stuff as u need that as mickey said - to write calibration utils. > On Sat, 2008-01-19 at 11:41 +1100, Carsten Haitzler wrote: > > On Sat, 05 Jan 2008 21:02:52 +0100 Tobias <[EMAIL PROTECTED]> babbled: > > > > > Hi all, > > > > > > I've played around with Ecore_Fb on my zaurus and I've run into some > > > problems with events getting through to evas. > > > > > > First, there were some comments about libts support in ecore a couple of > > > weeks ago, this libts implementation (ecore_fb_ts_c) seems to be very > > > ipaq specific, and is not used anywhere and deprecated. > > > > that's the code compiled if u don't have tslib support. #ifdef HAVE_TSLIB > > builds the tslib specific code, and otherwise its the old code i wrote > > originally for my ipaq 3660 touchscreen etc. frankly at the time i didn't > > abstract it much at all - i was just happy to make it work :) > > If I'm not mistaken, it does not build the ipaq nor the tslib code, > ecore_fb_ts.c is not included in the build at all. > > > > I've altered it and attach patches here to enable it again and only > > > support the libts mouse events and remove all the ipaq > > > backlightning,led,brightnes...etc stuff, I've also removed the > > > calibration. > > > > seems mostly the patches just remove the old ipaq code (most of whihc is > > dormant) and only leave the tslib specific code - thats really just a "old > > feature cleanup" - not sure how it makes things work as opposed to not work > > (if u built with tslib support). removing the led blink etc. calls are > > probably good - it's an ipaq specific thing. but what was wrong? if u had > > tslib - then it should be using it, not ipaq specific touchscreen stuff? > > What was wrong was that it was never built at all; currently > ecore_fb_ts.c is outcommented in Makefile.am. I wanted to enable it, and > I found lots of ipaq specific calls. So I reasoned like this: > It is outcommented in Makefile.am, so noone is using it. Tslib is linked > in if found, but no code is using it. There are ecore_fb_ functions that > only works on ipaq and noone is using them. Why not enable it again and > remove the ipaq calls? > > What the patch does is make ecore_fb_ts_init.c compile again and removes > ipaq specific calls. Maybe you want the ipaq code to be outcommented > instead? > > > > Now ecore_event_handler_add(ECORE_FB_EVENT_MOUSE_*...) events works, but > > > I can't get any evas_object_event_callbacks to work (subsequently edje > > > files don't receive any mouse events either). > > > > > > I've tried evas_event_feed_mouse in an app but I can't get any more > > > events than mouse_in and mouse_out fed to the evas_object. I'm not sure > > > I grok evas_event_feed*. > > > > these feed in raw events - ecore_evas_fb should have all that hooked up for > > you > > - *IF* it is getting events from ecore_fb at all. i'd printf in ecore_fb > > when it adds events and see if events are being produced at all. > > > > I init the touchscreen at the end of _ecore_evas_fb_init if no mouse is > found, if successful event handlers are setup for mouse up/down/move. It > works here. New patch attached. > > /Cheers > Tobias > -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) [EMAIL PROTECTED] ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel