Hi, I have noticed my USB mouse pointer moves very fast(more sensitive). Is there flag or driver ioctl call that i can call from inputdrivers/ps2mouse/ps2mouse.c to achieve this. I find two defines PS2_SET_SCALE11, PS2_SET_SCALE21 in the same file. Tried changing the scaling factor to 2:1. Even then there is no improvement.
Then I tried adjusting/limiting the co-ordinates dx and dy in ps2mouseEventThread() as #if 1 if (dx < (-5)) dx = (-5); if (dx > 5) dx = 5; if (dy > 5) dy = 5; if (dy < (-5)) dy = (-5); printf("Mouse output = %d, %d\r\n", dx, dy); #endif data->dx += dx; data->dy += dy; Though the sensitivity is achieved, it does not give smooth movements, It causes the mouse pointer to get stuck sometime. Has any one tried changing this parameter at the driver level ?. Here is my console output: =======================| DirectFB 1.2.0 |======================= (c) 2001-2007 The DirectFB Organization (directfb.org) (c) 2000-2004 Convergence (integrated media) GmbH ------------------------------------------------------------ (*) DirectFB/Core: Single Application Core. (2008-06-17 07:05) (*) Direct/Thread: Started 'VT Switcher' (-1) [CRITICAL OTHER/OTHER 0/0] <2093056>... DRIVER_DATA ((nil)) (*) Direct/Thread: Started 'Keyboard Input' (-1) [INPUT OTHER/OTHER 0/0] <2093056>... (*) Direct/Thread: Started 'IR Input' (-1) [INPUT OTHER/OTHER 0/0] <2093056>... (*) DirectFB/Input: Keyboard 0.9 (directfb.org) (*) Direct/Thread: Started 'PS/2 Input' (-1) [INPUT OTHER/OTHER 0/0] <2093056>... (*) DirectFB/Input: IMPS/2 Mouse 1.0 (directfb.org) (*) DirectFB/Graphics: Generic Software Rasterizer 0.6 (directfb.org) (*) DirectFB/Core/WM: Default 0.3 (directfb.org) (*) FBDev/Mode: Testing 720x480 RGB16 (*) FBDev/Mode: Preparing switch to 720x480 RGB16 (*) FBDev/Mode: Testing 720x480 RGB16 (*) FBDev/Mode: Preparing switch to 720x480 RGB16 (*) FBDev/Mode: Testing 720x480 RGB16 (*) FBDev/Mode: Preparing switch to 720x480 RGB16 (*) FBDev/Mode: Testing 720x480 RGB16 (*) FBDev/Mode: Preparing switch to 720x480 RGB16 (*) FBDev/Mode: Testing 720x480 RGB16 (*) FBDev/Mode: Preparing switch to 720x480 RGB16 (*) FBDev/Surface: Allocated 720x480 16bit RGB16 buffer at offset 0 and pitch 1440. (*) FBDev/Mode: (Post)Setting 720x480 RGB16 (*) FBDev/Mode: Switched to 720x480 (720x480) at 16 bit RGB16 (wanted RGB16). (*) FBDev/Mode: Testing 720x480 RGB16 (*) FBDev/Mode: Preparing switch to 720x480 RGB16 (*) FBDev/Mode: (Post)Setting 720x480 RGB16 (*) Direct/Thread: Started 'EventBufferFeed' (-1) [MESSAGING OTHER/OTHER 0/0] <2093056>... regards, Srinivas Rao. M -- Srinivas Rao M Hamse <http://msrinirao.blogspot.com>
_______________________________________________ directfb-users mailing list directfb-users@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users