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

DirectX / DirectInput support #16

Open
pwang00 opened this issue Jan 5, 2018 · 1 comment
Open

DirectX / DirectInput support #16

pwang00 opened this issue Jan 5, 2018 · 1 comment

Comments

@pwang00
Copy link

pwang00 commented Jan 5, 2018

Hey,

I tested mouse 0.7.0 on a DirectX game, and it seems as if click() and press() work fine, albeit with hiccups in performance. However, move() does not work within the game, though it does outside of the game window.

I'm fairly certain this is due to the game's use of DirectInput, and from what I've seen with Python DirectX mouse support, many other users have been having a similar issue.

Is there any workaround that will allow this library to work with DirectX, or anything else that you can suggest?

@bengardner
Copy link

If you are only interested in sending events, you can try using pydirectinput.
That uses SendInput() instead of mouse_event() and keybd_event() to send events.
It doesn't capture.

mouse_event() and keybd_event() have been superseded by SendInput().

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

2 participants