Thread: Keydown event in C ..

  1. #1
    Registered User
    Join Date
    Jun 2009
    Posts
    9

    Keydown event in C ..

    hello... is there any way tht we can perform a 'keydown' or keyup' event in c ??

  2. #2
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    Only with OS specific functions, not the standard library.
    "I am probably the laziest programmer on the planet, a fact with which anyone who has ever seen my code will agree." - esbo, 11/15/2008

    "the internet is a scary place to be thats why i dont use it much." - billet, 03/17/2010

  3. #3
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    That probably requires a tad more detail, such as:
    1. What OS?
    2. What do you mean "do" keydown and keyup events?
    3. Do you mean to see the keydown/up events, or to send them to some other application, or something else?

    Giving that may not be sufficient to answer the question, but it will be a starting point.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  4. #4
    Registered User
    Join Date
    Jun 2009
    Posts
    9
    even with os functions ,, how ??

  5. #5
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    What OS?

    Whilst I don't mind increasing my post count by ten with answering one question, I do think it would be better for YOU to answer OUR questions first, rather than just asking the same question again without further information. Preferrably all three of the ones I asked in one go, as it's likely that you will not get a very good answer without that.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  6. #6
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    Yeah dude, and make it clear you mean "key down"/"key up" and not just a "key pressed". The later is easy enough but I image the former could be quite hard.
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Lame null append cause buffer to crash
    By cmoo in forum C Programming
    Replies: 8
    Last Post: 12-29-2008, 03:27 AM
  2. Event driven thread programming
    By jaxen in forum C++ Programming
    Replies: 6
    Last Post: 11-22-2006, 08:46 AM
  3. XWindows- Close window event?
    By Exile in forum Linux Programming
    Replies: 8
    Last Post: 01-09-2005, 10:39 PM
  4. Replies: 2
    Last Post: 09-22-2003, 01:47 PM