Thread #108275908
HomeIndexCatalogAll ThreadsNew ThreadReply
H
How do I do a global keyboard hook on Linux in C?
+Showing all 7 replies.
>>
I need a sensei ;A;
>>
>>108275908
stop breaking into peoples houses Jamal
>>
>>108275908
Download someone else's FOSS implementation then monitor them so you know to switch away if they have the wrong opinions.
>>
>>108275929
Huh

>>108275916
What
>>
>>108275908
You can just read keyboard events out of /dev/
>>
>>108275908
With or without superuser privileges? With superuser you can use evdev to get raw keyboard events. Without you can use xlib or xcb.
>>
>>108277998
If he wants to "hook" the events that probably means he wants the event to do something and not send a keycode, which necessitates uinput probably

Reply to Thread #108275908


Supported: JPG, PNG, GIF, WebP, WebM, MP4, MP3 (max 4MB)