Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    How application function knows the keyboard events

    I wonder how an application function knows the keyboard events using C language. How I receive the events from OS? Thanks a lot.

  2. #2
    Linux Guru lakerdonald's Avatar
    Join Date
    Jun 2004
    St. Petersburg, FL
    Can you please elaborate?

  3. #3
    There is a 'while' cycle in the program, so it is always running. I have to detect whether the key board has been sprung in every cycle. But I do not know how to make it. I think the keyboard should give an event to OS, then I can receive the event in my app. I am not familar with the theory.

  4. $spacer_open

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts