I am attaching a sample code that works under X, to get that to work
under Mir, we only need to get cursor co-ordinates from unity8, then we
only need to update get_cursor_position() method.

it requires python-evdev, python3-autopilot and python3-xlib installed.

** Attachment added: "run.py"
   
https://bugs.launchpad.net/ubuntu/+source/unity8/+bug/1630337/+attachment/4755021/+files/run.py

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to unity8 in Ubuntu.
https://bugs.launchpad.net/bugs/1630337

Title:
  Need DBus API to get current co-ordinates of the Pointer

Status in unity8 package in Ubuntu:
  New

Bug description:
  The autopilot tool(using evdev) moves the mouse cursor on screen
  relative to its current position. This works fine in X11 as there are
  ways to easily get the co-ordinates of the cursor, but under Mir that
  does not work as we have no way to get the pointer' co-ordinates.

  We need this API to port autopilot to work under Mir based desktop.

  ProblemType: Bug
  DistroRelease: Ubuntu 16.10
  Package: unity8 8.14+16.10.20160922-0ubuntu2
  Uname: Linux 4.7.0-040700-generic x86_64
  ApportVersion: 2.20.3-0ubuntu7
  Architecture: amd64
  CurrentDesktop: Unity:Unity7
  Date: Tue Oct  4 22:42:50 2016
  InstallationDate: Installed on 2016-09-21 (12 days ago)
  InstallationMedia: Ubuntu 16.10 "Yakkety Yak" - Alpha amd64 (20160921)
  JournalErrors:
   Error: command ['journalctl', '-b', '--priority=warning', '--lines=1000'] 
failed with exit code 1: Hint: You are currently not seeing messages from other 
users and the system.
         Users in the 'systemd-journal' group can see all messages. Pass -q to
         turn off this notice.
   No journal files were opened due to insufficient permissions.
  SourcePackage: unity8
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unity8/+bug/1630337/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to