Actual Multitouch. No Weirdness!

Posted on January 13th, 2009 in Android Hacking by Disconnect  Tagged , , ,

Luke has posted a full demo of his multitouch patch – the patch and application are both updated, an (bonus!) it works with existing images! Just flash his modified kernel and off you go!

From the original announcement:

I have put together a new patch for supporting multitouch scaling on
the G1.

This version is much less invasive than the previous patch.  I pushed
all multitouch support into the synaptics driver, and only have the
driver report a single event for multitouch situations, consisting of
the x and y coords set to the midpoint between the two touch points,
and the size field of the event set to the distance between the touch
point and each finger (i.e. the radius of stretch).  Size == 0 when
there is only one finger on the screen.  This patch is 100% compatible
with all current apps and the Android event pipeline, as far as I can
tell.  Apps can be written to detect multitouch events by checking the
size field, and if it is > 1.0 (the max value returned by the current
driver, although this value appears to just consist of noise
currently), then the program can initiate a multitouch operation.
Under the new system, the size values stored in MotionEvents are in
screen coordinates just like x and y.

From a user standpoint, this patch could easily give multitouch
scaling in MapViews and WebViews, but does not allow for more
complicated operations such as rotation (see my previous post for the
reason why).

Comments please from core framework developers?  I understand a driver
was checked into git for a “real” iPhone-style multitouch screen a
while back, but there doesn’t appear to be any UI code checked in for
it yet, and obviously there is no announced device.  Could something
like this be pushed upstream in the meantime though to at least
support multitouch scaling on the G1?  Or is this unlikely to ever
pass?

Find the file attached, lets give it a try! :)

android-multitouch (176)




5 Responses to 'Actual Multitouch. No Weirdness!'

Subscribe to comments with RSS


  1. on January 13th, 2009 at 11:01 pm

    [...] [via ABN] [...]


  2. on January 14th, 2009 at 3:42 am

    [...] [via ABN] [...]

  3.    dep said,

    on January 15th, 2009 at 1:02 pm

    It works…the demo is smooth.

    Reply


  4. on January 15th, 2009 at 5:29 pm

    [...] [via ABN] [...]

  5.    Tanuja said,

    on January 16th, 2009 at 1:42 am

    I want to know how to make the multi touch event run on the windows … since im working on windows…. how to upadate the patch file in the windows emulator….. please help..

    Reply

Post a comment