Input-Handling
Mario Torre
neugens.limasoftware at gmail.com
Mon Mar 7 22:48:26 PST 2011
Il giorno lun, 07/03/2011 alle 16.26 +0100, Clemens Eisserer ha scritto:
> Hi Mario,
>
> > Mmmm...
> >
> > You could create different instances of the Screen, although we never
> > really did this, so I'm not sure it work out of the box (but I don't see
> > why it shouldn't to be honest).
>
> Didn't realize Cacio was so well-suited for multi-screen environments,
> I now simply create seperate screens and GraphicsConfigurations. Works
> really well, even when rendering is triggered by non-input threads :)
Hehe, it's a nice thing, I know ;)
> I got mouse-events mostly working (same state as the SDL backend),
> however key-events remain a mystery.
> Even the X11 backend doesn't seem to implement key-events.
I'll send you later an example, it's a little bit tricky because this is
a gray area that is really platform dependent and the mapping is tedious
(and always basically the same but slightly different so you cannot
really abstract it much).
> Is there some support in Cacio for synthetisizing events?
> I read a few comments about it, but didn't find code doing it.
>
> >From the canvas I only get button_pressed/released - when I
> sythetisize the clicked myself I suddenly can click buttons and
> checkboxes. However keeping double-clicking etc in mind, I fear this
> will be quite tiresome.
Some of them are... The problem is that each platform has different
rules so it was not really obvious how we could make it less boring to
do.
This is usually something you want to pass over your trainees >;)
Cheers,
Mario
--
pgp key: http://subkeys.pgp.net/ PGP Key ID: 80F240CF
Fingerprint: BA39 9666 94EC 8B73 27FA FC7C 4086 63E3 80F2 40CF
IcedRobot: www.icedrobot.org
Proud GNU Classpath developer: http://www.classpath.org/
Read About us at: http://planet.classpath.org
OpenJDK: http://openjdk.java.net/projects/caciocavallo/
Please, support open standards:
http://endsoftpatents.org/
More information about the caciocavallo-dev
mailing list