简体   繁体   中英

Getting State of Modifier Keys Compact Framework

How can I get the state of a modifier key using VB.NET on the Compact Framework, in this case Windows Mobile 6.1. I want to be able to determine if the following keys are pressed or locked:

Shift CTRL ALT

and for the Psion Teklogix machines Orange Blue Although I may be able to work this out, if I can determine the others.

I want to create my own on-screen indicator panel and want to poll the keys, not using events.

So there is the AllKeys function. Probably the best way to go today.

just say no to GAPI – What you need to know about AllKeys and input management.

And this link should give you the P/Invoke to use in managed code.

Capture all Windows Mobile device keys using the AllKeys API

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM