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

Cursor Position Bugged #34

Closed
ienooo opened this issue May 1, 2022 · 2 comments
Closed

Cursor Position Bugged #34

ienooo opened this issue May 1, 2022 · 2 comments

Comments

@ienooo
Copy link

ienooo commented May 1, 2022

Mode: Windows Ink Relative Mode
Tablet: XP-Pen Star G640

When using my tablet, the cursor teleports in the upper left corner of my screen and I'm only able to use it in that small area (~[0,0]-[330,30]).
When I move my mouse again the cursor teleports back to the position where it was before I used my tablet.

Running a python script that returns the mouse position always returns the last position where the mouse was not where the cursor is while I use my tablet.
So when I moved the cursor with my tablet from eg [500,500] to [0,0] it returns [500,500] anyways. Moving my mouse teleports the cursor back to [500,500].
The script i used:

from ctypes import windll, Structure, c_long, byref

class POINT(Structure):
    _fields_ = [("x", c_long), ("y", c_long)]


def queryMousePosition():
    pt = POINT()
    windll.user32.GetCursorPos(byref(pt))
    return { "x": pt.x, "y": pt.y}

pos = queryMousePosition()
print(pos)
@jamesbt365
Copy link

Try the latest release, if it still happens its OpenTabletDriver/OpenTabletDriver/issues/1124

@X9VoiD
Copy link
Owner

X9VoiD commented Nov 30, 2022

Resolved by 37f0471

@X9VoiD X9VoiD closed this as completed Nov 30, 2022
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

3 participants