Does anyone know where I can find the documentation on the /dev/psaux
interface? I want the /dev interface...
I want to know what the commands to send mouse events by writing to
/dev/psaux.... ala:
mfd = open("/dev/psaux", O_RDWR);
if (mfd < 0) {
fprintf( stderr, "could not open mouse, returned %d\n", mfd);
return -1;
}
printf("opened mouse\n");
if( write( mfd, &cmd, sizeof(cmd) ) < 1 )
{
fprintf( stderr, "Can't write to mouse device: %m" );
return -2;
}
printf("wrote to mouse\n");
if( (ret = (read( mfd, &tmp2, sizeof(tmp) -1))) < 1) {
fprintf( stderr, "read failed, yo : %d\n", ret);
return -3;
}
printf("/dev/psaux gave %d bytes: \n", ret);
for (i = 0; i < ret; i++) {
printf(" %2x", tmp2[255]);
}
I have a handfull of commands from the headerfiles. But, how those
commands are formed is non-obvious. I cannot seem to find a spec anywhere.
I found one for the hardware level, but nothing else.
namaste,
Mark
_______________________________________________
Siglinux mailing list
[email protected]
http://www.utacm.org:81/mailman/listinfo/siglinux