Skip to main content
gamedev.net
🔒 Locked

linux keyboard hooking,how?

Started by cebugdev Apr 20, 2006 at 10:17 PM 3 replies 750+ views
Original Post
cebugdev
cebugdev
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.
nefthy
nefthy
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.
Ademan555
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)

cheers
-Dan
When General Patton died after World War 2 he went to the gates of Heaven to talk to St. Peter. The first thing he asked is if there were any Marines in heaven. St. Peter told him no, Marines are too rowdy for heaven. He then asked why Patton wanted to know. Patton told him he was sick of the Marines overshadowing the Army because they did more with less and were all hard-core sons of bitches. St. Peter reassured him there were no Marines so Patton went into Heaven. As he was checking out hi
Ravuya
Ravuya
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.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.