[Scummvm-devel] Android port: mouse/touchscreen improvements
Klaus Reimer
k at ailis.de
Sun May 8 22:39:21 CEST 2011
On 05/07/2011 10:38 AM, Andre Heider wrote:
> 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?
For the WebOS port I implemented it like described in the README of the
Android port. So I use a long tap for right button, a even-longer tap
for middle button and the double-tap-dragging. WebOS doesn't have any
fancy special events for this so I implemented this by just looking for
the standard down/move/up events.
So if you are talking about a standardized multi-touch-screen
implementation in ScummVM then WebOS would definitely profit from it.
--
Bye, K <http://www.ailis.de/~k/>
[A735 47EC D87B 1F15 C1E9 53D3 AA03 6173 A723 E391]
(Finger k at ailis.de to get public key)
More information about the Scummvm-devel
mailing list