Find the answer to your Linux question:
Results 1 to 3 of 3
I wonder how an application function knows the keyboard events using C language. How I receive the events from OS? Thanks a lot. MSN:likedaxia@hotmail.com...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2005
    Posts
    5

    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.
    MSN:likedaxia@hotmail.com

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

  3. #3
    Just Joined!
    Join Date
    Nov 2005
    Posts
    5
    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
    $spacer_close

Posting Permissions

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