Operating System - HP-UX
1847708 Members
5436 Online
110265 Solutions
New Discussion

Get simply mouse/kbd events

 
Herbert Simon
Advisor

Get simply mouse/kbd events

Hi!
How can i get simply mouse/kbd events? An simply open("/dev/ps2mouse", O_RDONLY) give on HP a "Device busy" back....

Thanks a lot for Help

Karsten

mail please to
Karsten.kankowski@airbus.com
2 REPLIES 2
Steve Steel
Honored Contributor

Re: Get simply mouse/kbd events

Hi


www.software.hp.com

public domain software

search on restwatch

restwatch is intended to run permanently during an X11 session and to
monitor the time during which the keyboard or mouse is used. After a
given time, a window pops up with a given position and size and
remains until no more typing is done for a given time. Statistics of
the total number of keystrokes and total typing time are permanently
displayed, and are written to stdout after a set amount of idleness
when they are also reset to zero.

Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Wodisch_1
Honored Contributor

Re: Get simply mouse/kbd events

Hi Karsten,

since that is something you would get form the X-server, you'll have to write a program to tell the X-server which events you want to be notified for.
Get the (open) sources for "xev" as that shows all events - your's would only have to register for "MouseMotion" and "KeyPress/KeyRelease" events...

HTH,
Wodisch