Alternatives to waiting on Message loops for keyboard input RRS feed

  • Question

  •  Hello,

    The am looking at real time measurement of keyboard input times (WM_KEYUP and WM_KEYDOWN) for my application. Is there a way to get notified of KEYUP and KEYDOWN events by a method does not require waiting on message loop to capture keyboard inputs at the application level?


    Wednesday, September 13, 2006 12:07 AM


  • You can add hooks to the WM_KEYUP and EM_KEYDOWN events if you are using Visual C++. Then you can have a variable in your class which will store the time at which the event occured. This way, windows will automatically notify your application of these events and you will not have to run your own message pump.
    Sunday, September 24, 2006 5:29 AM