LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Grabbing keyboard and mouse input (https://www.linuxquestions.org/questions/programming-9/grabbing-keyboard-and-mouse-input-503349/)

philips217 11-20-2006 02:33 PM

Grabbing keyboard and mouse input
 
Hi guys,

I am trying to write a C program that will grab all keyboard and mouse input and do nothing with them until you press f9. Where my main problem is when you type certain combinations like: ctrl+alt+delete, etc…
I want it so it will totally ignore everything until f9 is pressed.
I have tried the ioctl function and a couple others but no luck.
Can anyone help me get started with what functions to use or maybe some code example.

Thanks in advance.

k1ll3r_x 11-21-2006 12:05 AM

maybe an if loop with compare values, escape key on f9 maybe you can input all data and check each char until the char produced by f9 comes up, then you can keep on with the sequence


All times are GMT -5. The time now is 11:36 PM.