getting all kbd events

Timothy S. Nelson wayland at wayland.id.au
Wed Jul 8 02:54:58 PDT 2009


On Wed, 8 Jul 2009, Nokan Emiro wrote:

> Hi,
> The next simple program tries to subscribe to all keyboard events, and print a short
> message on all received ones.  I expected to see the short message on all keypresses, for
> example if I press 'a', 'b', ..., '1', '2', ...,  or 'F1', 'F2', etc.  But this program
> prints messages only on Alt, Control, Shift, and Windows keys.  How can I change the
> XkbSelectEvents's parameters to be messaged on all keypresses?

 	I'm not an X programmer, but doesn't xev do this already?  And if so, 
couldn't you just look at the xev source?

 	:)


---------------------------------------------------------------------
| Name: Tim Nelson                 | Because the Creator is,        |
| E-mail: wayland at wayland.id.au    | I am                           |
---------------------------------------------------------------------

----BEGIN GEEK CODE BLOCK----
Version 3.12
GCS d+++ s+: a- C++$ U+++$ P+++$ L+++ E- W+ N+ w--- V- 
PE(+) Y+>++ PGP->+++ R(+) !tv b++ DI++++ D G+ e++>++++ h! y-
-----END GEEK CODE BLOCK-----


More information about the xorg mailing list