[SDL] Qtopia backend fixes
David Hedbor
david at hedbor.org
Tue Nov 26 10:06:01 PST 2002
Alexandre Courbot <alexandrecourbot at linuxgames.com> writes:
> Hi dear SDL guys,
>
> Just wanted to submit this little patch that fixes one important issue
> with the Qtopia backend: the menu/applications keys weren't catched by
> SDL, which caused the corresponding application to be launched, making
> SDL lose the focus and often requiring a soft reboot. Moreover, due to
> the limited number of keys on PDAs, it would have been nice to use them.
>
> The trick was to create a new QPEApplication instead of using qApp, and
> to call grabKeyboard() / ungrabKeyboard() on it when appropriate. I've
> also tuned a little bit the key mapping to make them all recognized. The
> patch isn't very long - if the other people working on the Qtopia port
> (David?) could have a quick look to confirm I haven't broken anything
> before integrating it, it'd be nice. But AFAIK this doesn't cause any
> problem. I'll update my packages very soon.
>
Please send me the patch. I don't understand what 'create a new
QPEApplication' means. I hope you didn' do 'new QPEApplication(...)'
just to grab the keyboard/ Just use
((QPEApplication*)qApp)->grabKeyboard().
Also when ungrabbing, you need to grab first or it won't always
work. In either case, send the patch to me, I'll look at it and send
it to sam.
--
[ Below is a random fortune, which is unrelated to the above message. ]
One meets his destiny often on the road he takes to avoid it.
More information about the SDL
mailing list