All Forums
 Microsoft Windows CE
 CE Drivers
 [GM] Keyboard events slow
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Author Topic  

3963

85 Posts

Posted - 22 Nov 2002 :  13:06:40  Show Profile  Email Poster
It appears that CE Keyboard events consume a lot of real-time! I can starve my application threads by quickly tapping keyboard keys -- even ones that aren't trapped by my app.

This is a problem for us because we had hoped to piggyback a knob input device on the ps2 keyboard interface, and, when turned, it generates keyboard events quickly. Unfortunately, since it takes so long for CE to service these events (at a high priority) my threads can't run till all the keyboard events get serviced. A half second knob twist results in a delay of a second or so before my app gets to run again.

Typing a couple of unrelated keys fairly quickly (10 times a second) halts my threads. I really don't want to move my thread priorities up, cause they aren't I/O related, and will contend for I/O time.

Any suggestions (besides "don't use the PS/2 interface)?

akidder

1519 Posts

Posted - 05 Dec 2002 :  10:31:41  Show Profile  Email Poster
The keyboard driver uses the standard thread priority. Try increasing your thread priorities a couple levels to give them more processing time than the keyboard thread.
Go to Top of Page

3963

85 Posts

Posted - 05 Dec 2002 :  11:48:52  Show Profile  Email Poster
Thanks for the suggestion -- I already tried this. It just delays the inevitable. The events themselves consume some large amount of real-time, and changing priorities doesn't change this, it just makes the app less responsive to the KB events.

Any other thoughts? Or details on the KB event architecture on CE / Graphics Master?
Go to Top of Page
  Topic  
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Jump To:
Eurotech Support Forums © Eurotech Inc. Go To Top Of Page
This page was generated in 0.02 seconds. Snitz Forums 2000