I've been trying to implement my touch screen driver and debugging by comparing expected behavior with the Goldfish port. Have the problem that touch events are going to the UI, but it seems not the touch position. Ie. touching anywhere on the screen causes the notification panel to show the drag-bar. (just touch and hold the notification bar without dragging too see this on any other device). My guess is that the X,Y coordinates of the touch-screen remain at (0,0) and the BUTTON_TOUCH is working.
I'm at the stage where the touch driver gets the ABS_X and ABS_Y values and sends these along with BUTTON_TOUCH into the input system. As far as I can tell, I've setup all the relevant absbits and keybits for BUTTON_TOUCH, also the driver scales touch position to match screen pixel X/Y scale and that appears ok. Running # getevent /dev/input/event0: 0003 0000 0000012a /dev/input/event0: 0003 0001 0000017c /dev/input/event0: 0001 014a 00000001 /dev/input/event0: 0000 0000 00000000 It shows my EV_ABS and ABS_X / ABS_Y events along with the button touch events and looks the same as what I see on the goldfish emulator. Anyone have any ideas as to what is happening? Thanks Carl -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
