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

pydirectinput -> pyautogui ? #9

Open
willwade opened this issue May 13, 2023 · 3 comments
Open

pydirectinput -> pyautogui ? #9

willwade opened this issue May 13, 2023 · 3 comments

Comments

@willwade
Copy link

willwade commented May 13, 2023

I realise PyDirectInput is nice, but it makes it difficult to make it multiplatform. Is it possible to look at an alternative? pyautogui and some if statements to deal with Windows (and then use pydirectinput for Win only??)

@willwade willwade changed the title win32api -> pynput win32api -> pynput or pyautogui ? May 14, 2023
@willwade willwade changed the title win32api -> pynput or pyautogui ? pydirectinput -> pyautogui ? May 14, 2023
@avneetgoogle
Copy link
Collaborator

Hey @willwade , thanks for checking in on this.
To enable mouse and keyboard control within our Python application, we utilize two libraries: PyAutoGUI for mouse control and PyDirectInput for keyboard control. PyAutoGUI is chosen for its robust mouse control capabilities, allowing us to simulate mouse movements, clicks, and other actions. On the other hand, we leverage PyDirectInput for keyboard control as it offers enhanced compatibility with various applications, including games and those relying on DirectX.

You can read more about the technologies we leveraged and why here: https://developers.googleblog.com/2023/06/project-gameface.html

@avneetgoogle
Copy link
Collaborator

Let us know what you think, and we'd love to hear your feedback!

@willwade
Copy link
Author

@avneetgoogle - I get that - but I'm sure I'm looking badly - I cant see lines in the code that really leverage directx which couldnt be done by pynput (NB: I think using pyAutoGui is causing some headaches #5 (comment)) - I'm sure I'm missing something. So if so to make this multplatform we just need to do some IF statements to have diff libraries

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