[SDL] Hardware buttons on pocket pc

Phoenix Kokido kokido at postmark.net
Sun Sep 21 16:09:00 PDT 2003


IIRC it returns different keycodes/keysyms than SDL has those keys
mapped too.  The code that was in SDL last year when I made those
changes sent SDL_KEYDOWN events with no keysyms whatever, I focused on
fixing that first, but my dev system went down before I could fix the
mapping, and I never got around to reinstalling the Embedded Tools
again.  I tested the key modifiers before using the soft keyboard. 
For now, after the the patch to SDL_Sysevents.c is made, the only way
to read the hardware keys is to check the keysyms with the one you
want for your button.  I'll try to address it better tomorow when I
have access to my dev system and my ipaq is back in it's cradle.

I have no special abilities to patch CVS.  We just prepare a diff and
send it to either Sam directly or to the mailing list, depending on
the size of the patch.


Tyler Montbriand wrote:

> On Sunday 21 September 2003 08:24 am, Phoenix Kokido wrote:
> > I found my code that fixed support on pocket pc's, but don't have time
> > to check it against current CVS and to patch, so I'm hoping that
> > someone else can do it today, otherwise I guess I'll do it tomorow.
> >
> > In src/video/wincommon/SDL_sysevents.c in function
> > WIN_GetKeyboardState I either edited or added the following that got
> > the buttons working (I did this so long ago I had trouble remembering
> > any of the details, hooray for comments though).
> >
> <snip>
> I have just tested this...  the code compiles fine, and probably
works(can't 
> be sure though, ipaq's not having ctrl, alt, shift, or numlock keys), but 
> does not fix the arrow keys.  :(  You sure you didn't modify anything in 
> SDL_dibevents.c too?
> 
> _______________________________________________
> SDL mailing list
> SDL at libsdl.org
> http://www.libsdl.org/mailman/listinfo/sdl




More information about the SDL mailing list