/dev/cursor
/dev/pointer
Reading the pointer file returns the current pointer position and the state of any buttons associated with the pointer. The read blocks until the state has changed since the last read. Each read returns a 49 byte record:
Each record has the letter m immedlately followed by four 11-character decimal numbers, each number ended by a blank. X and y give the coordinates of the pointer in display coordinates; the value buttons has bit (1<<b) set when button b is down; and msec is a time stamp in milliseconds.
Writing a record of the above form to pointer moves the displayed cursor to the given x and y position; buttons and msec are ignored.
Writing an image(6) file to the cursor file sets the image of the cursor on the display. Reading cursor returns the current cursor image, again in image(6) format.
POINTER(3 ) | Rev: Thu Feb 15 14:43:36 GMT 2007 |