Are you saying that your hardware is behaving worse or different than the G1, or that you want to change the framework to do something different?
On Thu, Jan 29, 2009 at 11:48 PM, vinay harugop <[email protected]> wrote: > > hi, > Is there a way in android to change UI response/speed/behaviour for > touchpad event and during scrolling ? > > Touch scrreen driver is wroking quite well and sending x, y and > pressure during pen down/up. > > In Api Demos -> View > Lists > Array if stylus is moved very slowly > (no pen-up) then whole screen automatically moves up/down. Some kind > of more inertial behaviour for the current screen. > below inetruupt handler routine snipp.. > regards, > -vinay harugop > -------------- > if( pin_value == 1) > { > //pen up > input_report_abs(&d->idev, ABS_X, lastx); > input_report_abs(&d->idev, ABS_Y, lasty); > input_report_abs(&d->idev, ABS_PRESSURE, 0); > input_report_key(&d->idev, BTN_TOUCH,0 ); > input_sync(&d->idev); > return; > } > > tsc2003_read_xpos(d, PD_PENIRQ_DISARM, &x); > tsc2003_read_ypos(d, PD_PENIRQ_DISARM, &y); > tsc2003_read_pressure(d, PD_PENIRQ_DISARM, &p); > > //pen down > x=andrx(x); > y=andry(y); > lastx=x;lasty=y; > input_report_abs(&d->idev, ABS_X, x); > input_report_abs(&d->idev, ABS_Y, y); > input_report_abs(&d->idev, ABS_PRESSURE, p); > input_report_key(&d->idev, BTN_TOUCH,1 ); > input_sync(&d->idev); > ReactivatePenIRQ(d); > tsc2003_restart_pen_up_timer(d); > return; > > > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~---------~--~----~------------~-------~--~----~ unsubscribe: [email protected] website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---
