Results 1 to 1 of 1
Hi,
I wrote a C++ program to read the /dev/input/mouse1 device file to read output data for a USB mouse and it was succesful in Ubuntu 7.10
I`m now trying ...
- 12-12-2008 #1Just Joined!
- Join Date
- Oct 2008
- Posts
- 8
Trying to read device files
Hi,
I wrote a C++ program to read the /dev/input/mouse1 device file to read output data for a USB mouse and it was succesful in Ubuntu 7.10
I`m now trying to do the same thing in Ubunu 8.10 but for some reason I cant read the device file. I am absolutley sure that the node is correct (mouse1).
When I do a "cat /dev/input/mouse1" and move the mouse around, I don`t get any output on the console screen.
Is there anyone who has successfully read device files in Ubuntu 8.10? 8.10 uses HAL policy files instead of xorg.conf and I`m not sure if this means the device files can be read or not, and if they can be read, what the correct way to do that is.
Thx


Reply With Quote