![]() |
|
|
|||
|
WM_KEYDOWN: wParam always 0x84 - why ?
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 ?
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 ?
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 ?
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... |
![]() |
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|