PDA

View Full Version : Keyboard presence..


~mono
24th August 2006, 02:37 AM
Hello!

(sorry for my english)

Is there any way to find the presence of full-sized keyboard on PPCs and smartphones (700w or MotoQ for example) ? I'm writing my own custom-gui app and I need to translate VK_0 - VK_9 events correctly into chars or numbers depending on keyboard/keypad type..

CmdKewin
24th August 2006, 11:00 AM
Sure. Just look for the HKCU\SOFTWARE\Microsoft\Shell\HasKeyboard registry key. If it's 1, then the device has an Hardware Keyboard.

Linky linky: http://www.microsoft.com/downloads/details.aspx?familyid=B1F5CCAA-ADA2-42D4-8B70-95DC7D8F678C&displaylang=en

It's .NET managed code, but shoud give you the idea on how to interact with keyboard and remap keys. Among other things.

Note: this key is Vendor dependant. I got it on my TyTn, but I can't say for sure on a Treo.