Hi
I am developing cell phone keyboard driver(more or less, for sure there will
be D-pad and numerical keys and some functional), it will be communicating
with ARM board with UART
my question is how should I handle multiple pressing of one key (lets say
'2') so that user can have char 'b' on the screen. I am using WINCE 6.0
for now I am using keybd_event with KEY_PRESSED and KEY_RELEASED,
please give me some advices
For now I am strugling with Timer, using SetTimer function, and frankly
speaking it doesn't seems to work, if you can please send me some example of
usage because description on MSDN is very poor.
Best Regards, Adrian Proszczuk BioControl Poland
Rob - 31 Jul 2008 14:14 GMT
Hi,
I don't think you need WM_TIMER, it is not nice anyway...
(dependency's , inaccuracy)
just remember the GetTickCount() value when the last keydown was received.
If the next keydown is received withing a time shorter than "timeout", and
the key is the same as the previous one, you need to replace the prev char by
the next char under that key. If the time passed is greater, just start from
scratch with the next char. (if you're in text-type mode, not during regular
dialing ofcourse)
This seems more like a general (windows-) programming question, than a PB
question....
Greetings,
Rob.
> Hi
>
[quoted text clipped - 13 lines]
>
> Best Regards, Adrian Proszczuk BioControl Poland