In console program,how to receive mouse event from driver
Hello all,
I'm doing a project in linux use mips arch,so all the programs is console program.Without xwindow and other third-party gui lib,how can I use mouse,that is,how can I receive mouse event from the mouse driver and send it to the upper program. I need a clue or example on the question, any help would be appreciated!! Best regards, Wang Chaoye |
Quote:
http://linux.about.com/library/cmd/blcmdl8_gpm.htm Regards! |
i dont know anything about MIPS, but i think what you said means you can try reading the mouse device file. it used to be /dev/mouse a long time ago, i dont know what it is nowadays, because they've changed things a lot, eg. if you have a USB mouse you may have to read the USB port's device file or something, your distro may not be polite enough to make a "/dev/mouse" link to the USB device file when you plug in the mouse. theres something called HID compliance or whatever as well i think.
|
All times are GMT -5. The time now is 10:23 PM. |