• Advertisement
Sign in to follow this  

linux keyboard hooking,how?

This topic is 4328 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

ive been searching around google to find a tutorial or a sample implementation on how to do keyboard hooking in linux, i plan to catch the event when the user presses ctrl+alt+f1 (linux console switching) in our application.

Share this post


Link to post
Share on other sites
Advertisement
XGrabKey might be a start but I think it wont work since you can only grab keys that are not already grabbed by an ancestor window and I think that F1 will be grabbed by the root window. However this is just a quess.

Share this post


Link to post
Share on other sites
While we're on the topic, are there any input libraries that could provide direct input like capabilities on linux? (i'm currently using SDL, but i'm open to alternatives)

cheers
-Dan

Share this post


Link to post
Share on other sites
Quote:
Original post by Ademan555
While we're on the topic, are there any input libraries that could provide direct input like capabilities on linux? (i'm currently using SDL, but i'm open to alternatives)


ClanLib's input system is very similar to DInput.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement