[Scummvm-devel] Android port: mouse/touchscreen improvements

Andre Heider a.heider at gmail.com
Sat May 7 10:38:21 CEST 2011


On Mon, May 2, 2011 at 1:54 PM, Max Horn <max at quendi.de> wrote:
> Hi again,
>
> I guess what I am doing here is a  bit futile, but I am trying nevertheless: This thread, too, contained some interesting ideas and proposals. Would be a shame to forget them, so maybe somebody could transfer the content of this thread to our TODO list, or a feature request tracker item, or even an "Open Task" suitable for a future GSoC.
>
> This is is kind of related to the "small backends" stuff, I guess.

Indeed, Michael's proposal is what I consider as an intuitive
touchscreen event implementation. It maps most stuff of what ScummVM
requires, and it clones the behavior from well known touchscreen
capable apps.

I implemented it (I think exactly) like that for the android port :)

But I don't know how useful an implementation for "small backends"
would be. In the droid case, the whole code is heavily based on a
gesture detector of the SDK. That does the bulk of the work for us,
like using tap timeouts from the global settings, keeping track of
events, respecting the screen/dpi size to distinct if a wipe moved
past a certain threshold etc. And I think it makes more sense to keep
it that way instead of reinventing the wheel.
Without looking at e.g. the iphone SDK if it has an equivalent, which
backends would gain from such an implementation?

Regards,
Andre




More information about the Scummvm-devel mailing list