mtlib/platform.py: Allow negative numbers in abs regex

Magic Mouse uses negative coordinates.

BUG=chromium:398470
TEST=Added magic mouse regression test

Change-Id: Icf65e216fa585d2cf970be68872e937191976df3
Reviewed-on: https://chromium-review.googlesource.com/210145
Reviewed-by: Dennis Kempin <denniskempin@chromium.org>
Commit-Queue: Andrew de los Reyes <adlr@chromium.org>
Tested-by: Andrew de los Reyes <adlr@chromium.org>
diff --git a/mtlib/platform.py b/mtlib/platform.py
index f1a32fb..e12bed1 100755
--- a/mtlib/platform.py
+++ b/mtlib/platform.py
@@ -73,7 +73,7 @@
   def _ParseEvdevLog(self, evdev_data):
     # Look for embedded hwproperties in header. Format:
     # absinfo: axis min max 0 0 res
-    abs_regex = 5 * ' ([0-9]+)'
+    abs_regex = 5 * ' ([-0-9]+)'
     xregex = re.compile('# absinfo: 53' + abs_regex)
     xmatch = xregex.search(evdev_data)
     self.x_min = int(xmatch.group(1))