PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Compact Framework Implementing directional keypad

Reply

Implementing directional keypad

 
Thread Tools Rate Thread
Old 28-06-2006, 04:59 PM   #1
bill
Guest
 
Posts: n/a
Default Implementing directional keypad


Hi, I'm developing custom device using PXA270 and WinCE 5.0.
I want to implement a directional keypad which will have 4 buttons
effectively similar to say a gamepad, up arrow, down arrow, left
and right. This is so the user can navigate the main CF application
and move from say tab to tab rather than using touchscreen.

I can develop a driver which would detect which button is pressed
and say generate an event but how could i transalte this to an
event in my CF application which would allow me to navigate the form.

Touchscreen presses result in standard windows messages but how do i
get my 4key pad to do something similar?



  Reply With Quote
Old 28-06-2006, 05:05 PM   #2
Valter Minute
Guest
 
Posts: n/a
Default Re: Implementing directional keypad

"bill" <blyndon@gmail.com> wrote in news:ebfJ8LsmGHA.856
@TK2MSFTNGP03.phx.gbl:

[...]
> Touchscreen presses result in standard windows messages but how do i
> get my 4key pad to do something similar?


keybd_event

--
Valter Minute
(the reply address of this message is invalid)
(l'indirizzo di reply di questo messaggio non č valido)
  Reply With Quote
Old 28-06-2006, 05:06 PM   #3
Guest
 
Posts: n/a
Default Re: Implementing directional keypad

Have your driver post a message, call a keybd_event/PostKeyboardMEssage or
fire a named system event. It's up to you how you feel like implementing
it.

-Chris


"bill" <blyndon@gmail.com> wrote in message
news:ebfJ8LsmGHA.856@TK2MSFTNGP03.phx.gbl...
> Hi, I'm developing custom device using PXA270 and WinCE 5.0.
> I want to implement a directional keypad which will have 4 buttons
> effectively similar to say a gamepad, up arrow, down arrow, left
> and right. This is so the user can navigate the main CF application
> and move from say tab to tab rather than using touchscreen.
>
> I can develop a driver which would detect which button is pressed
> and say generate an event but how could i transalte this to an
> event in my CF application which would allow me to navigate the form.
>
> Touchscreen presses result in standard windows messages but how do i
> get my 4key pad to do something similar?
>
>
>



  Reply With Quote
Old 28-06-2006, 08:56 PM   #4
Duncan U. Harper
Guest
 
Posts: n/a
Default Re: Implementing directional keypad

Are you using the PXA's keypad matrix features? If you are you may
want to look at the mainstone II's keypad driver which I have used to
create a directional keypad, numeric pad and some hotkeys. The driver
would then post messages much like a keyboard which should make it
easier on the application and driver developers.


Duncan


bill wrote:
> Hi, I'm developing custom device using PXA270 and WinCE 5.0.
> I want to implement a directional keypad which will have 4 buttons
> effectively similar to say a gamepad, up arrow, down arrow, left
> and right. This is so the user can navigate the main CF application
> and move from say tab to tab rather than using touchscreen.
>
> I can develop a driver which would detect which button is pressed
> and say generate an event but how could i transalte this to an
> event in my CF application which would allow me to navigate the form.
>
> Touchscreen presses result in standard windows messages but how do i
> get my 4key pad to do something similar?


  Reply With Quote
Old 28-06-2006, 09:37 PM   #5
=?Utf-8?B?YW5vbnltb3Vz?=
Guest
 
Posts: n/a
Default RE: Implementing directional keypad

We have a membrane keypad driven by a CPLD. I use keybd_event() to generate
events like a standard keyboard. If you don't have to have these keys as
special keys, try to make them like the arrow keys on a standard QWERTY
keyboard. The application software folks will love you for your efforts.

"bill" wrote:

> Hi, I'm developing custom device using PXA270 and WinCE 5.0.
> I want to implement a directional keypad which will have 4 buttons
> effectively similar to say a gamepad, up arrow, down arrow, left
> and right. This is so the user can navigate the main CF application
> and move from say tab to tab rather than using touchscreen.
>
> I can develop a driver which would detect which button is pressed
> and say generate an event but how could i transalte this to an
> event in my CF application which would allow me to navigate the form.
>
> Touchscreen presses result in standard windows messages but how do i
> get my 4key pad to do something similar?
>
>
>
>

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off