Avatar of jazjef
jazjef

asked on 

How does one detect hardware keypress input on SmartPhone device using VB.Net (SmartPhone; SmartDevice)?

Using VB.Net, how can user input via hardware button keypresses on a SmartPhone/SmartDevice be detected? I can't seem to find Smartphone info that addresses the hardware button input capture events.

Example:  I am putting together a small application for a Motorola Q SmartPhone device using VB.Net. This device is Windows Mobile 5.0 OS....

....  any help is appreciated.

Smartphone Programming.NET Programming

Avatar of undefined
Last Comment
jazjef
Avatar of Mikal613
Mikal613
Flag of United States of America image

Avatar of jazjef
jazjef

ASKER

It's a great lead Mikal613, but I don't know how to really implement this... looks like C code to me.... I need a snippet of sample code in vb that shows something like a message box that results from soft-key Left or RIght input etc.... does anyone know this in vb.net?

Avatar of jazjef
jazjef

ASKER

VB.Net answers please...  I can find C# and C++ answers to this question----but I need some assistance with a sample that shows VB.Net code. I am not writing in C# or C++  .....
Avatar of jazjef
jazjef

ASKER

2000 POINTS FOR THIS ANSWER....I NEED HELP.
Avatar of jazjef
jazjef

ASKER

Is there anyone out there who has actually done this? Where are all these SmartPhone games on the internet coming from if no one knows how to get the input from the hardware buttons?.......
ASKER CERTIFIED SOLUTION
Avatar of Mikal613
Mikal613
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of jazjef
jazjef

ASKER

OK-----you're right Mikal613.... it works.....thanks a ton.

But this still leaves me with an issue:  This code works for keyboard 'keys' such as 'R' or 'H' or 'ENTER' but it does not capture the RIGHT, LEFT, UP and DOWN or CENTER input from the navigation pad on the SmartPhone......   any ideas.....
Avatar of Mikal613
Mikal613
Flag of United States of America image

can you put a breakpoint on the handlers and see if it even hits it
Avatar of jazjef
jazjef

ASKER

negative...  If I specify 'Keys.Escape' and then hit the back/escape button on the keypad I get a hit count of '1'

If I specify 'Keys.Up' to use the up arrow pointer on the navigation button the hit count is always '0'

Avatar of jazjef
jazjef

ASKER

Thanks Mikal613.... I decided to give you the points and open the other issue as a new question. I told you I would give 2000 points, but I was not given that option when I closed this question.... if you can tell me how to do it I will see to it that you get the other 1500 points I stated I would give.....
.NET Programming
.NET Programming

The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.

137K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo