All Forums
 Microsoft Windows CE
 CE Sample Applications and Utilities
 eVB - ADSmartIO KeypadToKeypress
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Author Topic  

ctacke

877 Posts

Posted - 25 Mar 2002 :  14:20:35  Show Profile  Email Poster
This sample application uses an eVB Timer object to poll the ADS development system's keypad using the SmartIO function SIOReadKeypad(). If a key has been pressed, the function generates a keypress function through the use of the keybd_event() API.

While the Timer slows application performance, and this specific example may not be great for production, it provides an example of how simple the ADSmartIO libraries are to use.

This performance and utility of this application could be greatly improved by making it a Formless application that your GUI-based eVB app creates through a CreateProcess API call. This would place the KeypadToKeypress translator within its own process space.

This specific sample assumes a 4x4 (16-key) keypad with this layout:


[1][2][3][A]
[4][5][6][B]
[7][8][9][C]
[A][0][B][D]


-----------------
Chris Tacke, eMVP
Applied Data Support
  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