Use your gamepad as a mouse with pygame and PyAutoGUI.
Project description
GuiPad
Use your gamepad as a mouse with pygame and PyAutoGUI.
Installation
Download GuiPad.py and run it with python.
OR
Use pip install GuiPad
in your Operating System terminal, then in a python terminal or script:
import GuiPad
GuiPad.GuiPad()
https://github.com/JackLawrenceCRISPR/GuiPad
Configuration
A settings.ini file can be used in Guipad.Guipad("PathToSettings.ini") for additional customisation.
Generate a standard settings file using:
import os
import GuiPad
Make_In_Directory = os.path.join("C:\\Users","JackLawrenceCRISPR","Desktop","Folder") #put your own deployment directory!
MakeGuiPadini(Make_In_Directory, "GuiPad.ini") #you can also choose a custom name
Edit the .ini file to your preference then provide
Path = os.path.join("C:\Users","JackLawrenceCRISPR","Desktop","Folder","GuiPad.ini") in your GuiPad.GuiPad(Path)
Controls
Input | Output | Effect |
---|---|---|
Left joystick | Mouse | Move cursor |
Right trigger | Slow Mouse | Slow movment |
Right joystick | Arrow Keys | Page Scrolling / Time & Sound (videos) |
A Button | Left click | Normal click |
B Button | Right click | Right click |
X Button | Double click | Open file / select a word in text |
Y Button | Middle click | Open link in new tab |
D-Pad up | Ctrl + + | Zoom in |
D-Pad down | Ctrl + - | Zoom out |
D-Pad right | Ctrl + T | New tab |
D-Pad left | Ctrl + W | Close window |
Left shoulder | Ctrl + Shift + Tab | Next tab |
Right shoulder | Ctrl + Tab | Previous tab |
Left stick | Alt + Left | Go back |
Right stick | Alt + Right | Go forward |
Select button | Ctrl + C | Copy |
Start button | Ctrl + V | Paste |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
GuiPad-1.0.2.tar.gz
(6.2 kB
view hashes)
Built Distribution
GuiPad-1.0.2-py3-none-any.whl
(6.3 kB
view hashes)