Skip to main content

GuiPad

Use your gamepad as a mouse with pygame and PyAutoGUI.

Installation

Make sure that pygame is at least version 2.0
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://pypi.org/project/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!
GuiPad.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
Middle button Enter Apply

Button Mapping

Different gamepad types combined with different operating systems/drivers can cause button mapping inconsistencies.
Manually set your map if the shoulder and stick buttons on your gamepad are misaligned with the table above.
For example, a gamepad called "Controller (HORIPAD S)" could use the "xbox_windows" map which would be applied as:
GuiPad.MapGamepad("Controller (HORIPAD S)","xbox_windows")

The following command will provide further guidance for button mapping:

import GuiPad
GuiPad.MapGamepad()

Release files for GuiPad 1.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for GuiPad 1.2.2
File Size Uploaded
GuiPad-1.2.2.tar.gz 9.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for GuiPad 1.2.2
File Interpreter ABI Platform
GuiPad-1.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 18.4 kB

Release files / GuiPad-1.2.2.tar.gz

Download URL GuiPad-1.2.2.tar.gz
Size 9.1 kB
Tags Source
SHA-256 checksum
How to use checksums
40a19fed5522e22ab598eb8e62b6047e5c22c0c126415e8bfb586c3aef0fcd9a
BLAKE2b-256 checksum
How to use checksums
e7bf665a9bbef4367482dcedf3caa633ea8da0aab2dd172e9df4eedd65ad8ab6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / GuiPad-1.2.2-py3-none-any.whl

Download URL GuiPad-1.2.2-py3-none-any.whl
Size 9.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bcd6f78fdc8eb7087cb2f5ac6c2b2832d8ff3a256cec7871349e906f7631e9a5
BLAKE2b-256 checksum
How to use checksums
03544f2f36047b70f2a84f9d59f4e39f4d9116bf7c258c99653e386a919bd5af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release history Release notifications | RSS feed

This release

1.2.2 This release

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page