Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PyLeapMouse Pointer Goes to Corner #25

Open
luis84 opened this issue Nov 8, 2013 · 6 comments
Open

PyLeapMouse Pointer Goes to Corner #25

luis84 opened this issue Nov 8, 2013 · 6 comments

Comments

@luis84
Copy link

luis84 commented Nov 8, 2013

Hello,

Using PyLeapMouse in Linux Mint (Ubuntu 13.04) when I insert a finger into the frame the mouse will go all the way to the top left corner and sit there, it will not do anything else.

Can anybody comment on the potential cause of this?

@rdsqc22
Copy link

rdsqc22 commented Aug 21, 2014

I can confirm I have the same problem on Ubuntu 14.04. I have a multi-monitor setup, which might affect it.

Here's my traceback:
left button up
Traceback (most recent call last):
File "/home/peter/Documents/PyLeapMouse-master/FingerControl.py", line 51, in on_frame
self.cursor.scroll(x_scroll, y_scroll)
File "/home/peter/Documents/PyLeapMouse-master/Linux/Mouse.py", line 108, in scroll
AbsoluteMouseScroll(posx, posy, up)
File "/home/peter/Documents/PyLeapMouse-master/Linux/Mouse.py", line 28, in AbsoluteMouseScroll
mouse.click(posx, posy, button=4)
File "/usr/local/lib/python2.7/dist-packages/pymouse/init.py", line 44, in click
self.press(x, y, button)
File "/usr/local/lib/python2.7/dist-packages/pymouse/unix.py", line 32, in press
fake_input(display, X.ButtonPress, [None, 1, 3, 2][button])
IndexError: list index out of range

@xaionaro
Copy link

left button up
Traceback (most recent call last):
  File "/home/xaionaro/PyLeapMouse/FingerControl.py", line 51, in on_frame
    self.cursor.scroll(x_scroll, y_scroll)
  File "/home/xaionaro/PyLeapMouse/Linux/Mouse.py", line 108, in scroll
    AbsoluteMouseScroll(posx, posy, up)
  File "/home/xaionaro/PyLeapMouse/Linux/Mouse.py", line 28, in AbsoluteMouseScroll
    mouse.click(posx, posy, button=4)
  File "/usr/local/lib/python2.7/dist-packages/pymouse/__init__.py", line 44, in click
    self.press(x, y, button)
  File "/usr/local/lib/python2.7/dist-packages/pymouse/unix.py", line 32, in press
    fake_input(display, X.ButtonPress, [None, 1, 3, 2][button])
IndexError: list index out of range

@lium
Copy link

lium commented Dec 28, 2015

same here.

left button up
Traceback (most recent call last):
File "/home/ming/code/PyLeapMouse/FingerControl.py", line 51, in on_frame
self.cursor.scroll(x_scroll, y_scroll)
File "/home/ming/code/PyLeapMouse/Linux/Mouse.py", line 108, in scroll
AbsoluteMouseScroll(posx, posy, up)
File "/home/ming/code/PyLeapMouse/Linux/Mouse.py", line 30, in AbsoluteMouseScroll
mouse.click(posx, posy, button=5)
File "/usr/local/lib/python2.7/dist-packages/PyMouse-1.0-py2.7.egg/pymouse/init.py", line 44, in click
self.press(x, y, button)
File "/usr/local/lib/python2.7/dist-packages/PyMouse-1.0-py2.7.egg/pymouse/unix.py", line 32, in press
fake_input(display, X.ButtonPress, [None, 1, 3, 2][button])
IndexError: list index out of range
left button up
Traceback (most recent call last):
File "/home/ming/code/PyLeapMouse/FingerControl.py", line 51, in on_frame
self.cursor.scroll(x_scroll, y_scroll)
File "/home/ming/code/PyLeapMouse/Linux/Mouse.py", line 108, in scroll
AbsoluteMouseScroll(posx, posy, up)
File "/home/ming/code/PyLeapMouse/Linux/Mouse.py", line 30, in AbsoluteMouseScroll
mouse.click(posx, posy, button=5)
File "/usr/local/lib/python2.7/dist-packages/PyMouse-1.0-py2.7.egg/pymouse/init.py", line 44, in click
self.press(x, y, button)
File "/usr/local/lib/python2.7/dist-packages/PyMouse-1.0-py2.7.egg/pymouse/unix.py", line 32, in press
fake_input(display, X.ButtonPress, [None, 1, 3, 2][button])
IndexError: list index out of range

@abondis
Copy link

abondis commented Jan 7, 2016

same thing using ubuntu 14.04 and Leap SDK 2.2.2

@abondis
Copy link

abondis commented Jan 7, 2016

for those interested this version works for me https://github.com/rpav/PyLeapMouse

@lium
Copy link

lium commented Jan 8, 2016

I think the key concern is that everybody is hoping it can work as natural
as possible. However, these drivers are still far from that.

2016-01-08 2:56 GMT+08:00 Aurelien notifications@github.com:

for those interested this version works for me
https://github.com/rpav/PyLeapMouse


Reply to this email directly or view it on GitHub
#25 (comment)
.

Ming Liu (Assistant Prof. Dr.)

Robotics and Multiperception Lab (www.ram-lab.com)
Department of Mechanical and Biomedical Engineering
City University of Hong Kong
Tat Chee Avenue, Kowloon,
Hong Kong

www.intorobot.com

Phone: +852 3442 2308
Mobile: +852 5445 1473


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants