My program shows what button was pressed. On the emulator it works
fine but on my device (HTC Wizard) not:

When I press one of the up-down-left-right buttons, I always get same
results:
on WM_KEYDOWN message, wParam always equals to 0x84 !

How can I distinguish between left-right-up-down ?

Thanx in advance.

Re: WM_KEYDOWN: wParam always 0x84 - why ? by Saju

Saju
Sun Jul 06 17:18:56 CDT 2008

Maybe you should look on the corresponding WM_KEYUP message wParam as well !


"Tal" <TalGamma@gmail.com>
> My program shows what button was pressed. On the emulator it works
> fine but on my device (HTC Wizard) not:
>
> When I press one of the up-down-left-right buttons, I always get same
> results:
> on WM_KEYDOWN message, wParam always equals to 0x84 !
>
> How can I distinguish between left-right-up-down ?
>
> Thanx in advance.

Re: WM_KEYDOWN: wParam always 0x84 - why ? by Scott

Scott
Sun Jul 06 19:33:41 CDT 2008

Tal <TalGamma@gmail.com> wrote:
>My program shows what button was pressed. On the emulator it works
>fine but on my device (HTC Wizard) not:
>
>When I press one of the up-down-left-right buttons, I always get same
>results:
>on WM_KEYDOWN message, wParam always equals to 0x84 !

Is that the only WM_KEYDOWN message you're seeing?

0x84 is VK_DPAD, which should be sent before the actual key press to
indicate it's from the d-pad.

--
--------- Scott Seligman <scott at <firstname> and michelle dot net> ---------
Usenet is a great way of being annoyed by people I otherwise never
would have met.
-- Punk Walrus

Re: WM_KEYDOWN: wParam always 0x84 - why ? by Tal

Tal
Mon Jul 07 13:05:48 CDT 2008

On Jul 7, 3:33 am, "Scott Seligman" <selig...@example.com> wrote:
> Tal <TalGa...@gmail.com> wrote:
> >My program shows what button was pressed. On the emulator it works
> >fine but on my device (HTC Wizard) not:
>
> >When I press one of the up-down-left-right buttons, I always get same
> >results:
> >on WM_KEYDOWN message, wParam always equals to 0x84 !
>
> Is that the only WM_KEYDOWN message you're seeing?
>
> 0x84 is VK_DPAD, which should be sent before the actual key press to
> indicate it's from the d-pad.
>
> --
> --------- Scott Seligman <scott at <firstname> and michelle dot net> ---------
> Usenet is a great way of being annoyed by people I otherwise never
> would have met.
> -- Punk Walrus

Thanks for your responses. I'll check if WM_KEYDOWN is the only
message or I miss something...

Re: WM_KEYDOWN: wParam always 0x84 - why ? by ---

---
Mon Jul 07 13:46:13 CDT 2008

FYI, I also use only WM_KEYDOWN and wparam to pick up Right and Left, and it
seems to be working fine on a wide variety of Pocket PCs.
Robert Scott
Ypsilanti, Michigan