Qtopia libSDL

Howdy. I’ve been using the Qtopia port of libSDL with prboom. It’s quite
nice, though I do have one suggestion: if libSDL were to execute
QPEApplication’s grabKeyboard method, then SDL apps could map all the
hardbuttons on the iPaq to useful features. (At the moment, under Opie, the
buttons cause other apps to launch behind the SDL one.) Currently I’m
calling the method via qcop in a shell script before and after launching
prboom.

Whaddaya think?

-Cliff L. Biffle

“Cliff L. Biffle” writes:

Howdy. I’ve been using the Qtopia port of libSDL with prboom. It’s quite
nice, though I do have one suggestion: if libSDL were to execute
QPEApplication’s grabKeyboard method, then SDL apps could map all the
hardbuttons on the iPaq to useful features. (At the moment, under Opie, the
buttons cause other apps to launch behind the SDL one.) Currently I’m
calling the method via qcop in a shell script before and after launching
prboom.

Whaddaya think?

This is disabled because when you grab the keys, ungrabbing doesn’t
work. At least not sufficiently often to make it a default option. If
anyone figures out a good fix, sure.–
[ Below is a random fortune, which is unrelated to the above message. ]
An adequate bootstrap is a contradiction in terms.

Howdy. I’ve been using the Qtopia port of libSDL with prboom. It’s
quite nice, though I do have one suggestion: if libSDL were to
execute QPEApplication’s grabKeyboard method, then SDL apps could
map all the hardbuttons on the iPaq to useful features. (At the
moment, under Opie, the buttons cause other apps to launch behind
the SDL one.) Currently I’m calling the method via qcop in a shell
script before and after launching prboom.

Whaddaya think?

This is disabled because when you grab the keys, ungrabbing doesn’t
work. At least not sufficiently often to make it a default option. If
anyone figures out a good fix, sure.

Not sure whether this would help, but someone gave me this mail once
about this subject:-------------------------------
From: AndyQ [mailto:andy.qua@bigfoot.com]
Sent: Wednesday, August 21, 2002 5:16 PM
To: Thorsten Scheuermann
Cc: opie at handhelds.org; zaurus-general at lists.sourceforge.net
Subject: Re: [Zaurus-general] Key combination results in strange
behaviour

Sure, I’ve chaned the launcher to add a key config dialog which allows
you to select key/button maps to which control.

The calandar was prevented from popping up using
QPEApplication::grabKeyboard() && QPEApplication::ungrabKeyboard().

Note - when ungrabbing the keyboard you need to a re-grab immediatly
before otherwise it doesn’t work (a known issue).

I’m working off Walter Rawdanik’s codebase as he implemented a
performance increase.

I’ll release an updated ipkg in the next couple of days together with
the source code - I’ll try to get that done either over the weekend or
early next week.

Andy

On Wed, 21 Aug 2002 16:48:11 -0500, you wrote:

Can you share with us how you reconfigured the buttons? Do you have to
recompile the app to do that? And how do you prevent the calendar from
popping up when you use that button as a game control?

-Thorsten


At least maybe we could prevent the application keys from doing
something useful while SDL applications are running, because if you
accidentally push one of them, you lose the focus and are obliged to
soft-reboot most of the time! (which is a little ennoying… ;))

Alex.

http://www.gnurou.org

Alexandre Courbot writes:

Note - when ungrabbing the keyboard you need to a re-grab immediatly
before otherwise it doesn’t work (a known issue).

Hmm. I’ll try this.–
[ Below is a random fortune, which is unrelated to the above message. ]
Real Users are afraid they’ll break the machine – but they’re never
afraid to break your face.

Alexandre Courbot writes:

Note - when ungrabbing the keyboard you need to a re-grab immediatly
before otherwise it doesn’t work (a known issue).

Ok, this worked (!). Perhaps this is a valid workaround - I am going
to work some on SDL and add this I think. Plus, I’ll add it to my
games too.–
[ Below is a random fortune, which is unrelated to the above message. ]
Only those who leisurely approach that which the masses are busy about
can be busy about that which the masses take leisurely.
– Lao Tsu