@@ -54,7 +54,14 @@ class Hud(UnityEmulatorBase, DragMixin):
5454 except AssertionError:
5555 raise
5656 finally:
57− if self.touch.pressed:
57+ # XXX This ugly code is here just temporarily, waiting for uinput
58+ # improvements to land on autopilot so we don't have to access
59+ # device private internal attributes. --elopio - 2014-02-12
60+ try:
61+ pressed = self.touch._touch_finger is not None
62+ except AttributeError:
63+ pressed = self.touch.pressed
64+ if pressed:
5865 self.touch.release()
5966
6067 def dismiss(self):