uinput

Hi ALL,

I want to read the input from the /dev/input/uinput to the
application,
Any clues or pointers would appreciated,

Regards
Jon

may be:
int fd = open("/dev/input/uinput", O_RDONLY);
if (fd != -1) {
/* use uinput */
}

correct me if I’m wrong

2010/6/9 Beagler <goodcause100@googlemail.com>

Thanks for the reply,
But i tried that option too,
It will open the open the file but It cannot read the contents,

Try chmod’ing as root or sudo /dev/input/uinput so users besides root can read the file.

Hope this helps.
– @

Thanks for the reply,
I tried sudo, it is not working
Basically, It is throwing the output to the console,
DO we need to look at the events also? because keyboard and mouse
corresponds to event 1 and event 2(depending on the system)

Regards
Jon