Metadata-Version: 2.5
Name: gamepadla-plus
Version: 1.8.2
Summary: Gamepad Polling Rate and Latency Testing Tool (CLI & GUI)
Project-URL: Repository, https://github.com/WyvernIXTL/gamepadla-plus
Project-URL: Issues, https://github.com/WyvernIXTL/gamepadla-plus/issues
Author-email: Adam McKellar <dev@mckellar.eu>, John Punch <cakama3a@gmail.com>
Maintainer-email: Adam McKellar <dev@mckellar.eu>
License: MIT
License-File: LICENSE.txt
Keywords: DInput,XInput,controller,controller-latency,controller-utilities,gamepad,gamepad-performance,gamepad-testing,gaming-performance,gaming-tools,gaming-utilities,input-lag,input-polling,input-response,input-testing,latency-measurement,latency-tester,polling-rate,real-time-input,windows-gaming
Classifier: Environment :: Console
Classifier: Framework :: PySimpleGUI
Classifier: Framework :: PySimpleGUI :: 5
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: OS Independent
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Education :: Testing
Classifier: Topic :: Multimedia :: Graphics
Classifier: Topic :: System :: Hardware :: Universal Serial Bus (USB) :: Wireless Controller
Classifier: Topic :: Terminals
Classifier: Topic :: Utilities
Requires-Python: <3.14,>=3.10
Requires-Dist: colorama<0.5,>=0.4.6
Requires-Dist: freesimplegui<6,>=5.1.1
Requires-Dist: numpy<3,>=2.1.2
Requires-Dist: pygame<3,>=2.6.1
Requires-Dist: requests<3,>=2.32.3
Requires-Dist: rich<14,>=13.9.4
Requires-Dist: tqdm<5,>=4.66.6
Requires-Dist: typer<0.28.0,>=0.27.2
Description-Content-Type: text/markdown

<div align="center">

<img src="https://raw.githubusercontent.com/WyvernIXTL/gamepadla-plus/e17852e16a02d095f564ba0caf6589466f7004e5/icon/gamepadla-plus-icon-round-white.svg" alt="Gamepadla+ Icon"  width="200"/>


# Gamepadla+

**Gamepad Polling Rate and Latency Testing Tool (CLI & GUI)**

[![PyPI - Version](https://img.shields.io/pypi/v/gamepadla-plus)](https://pypi.org/project/gamepadla-plus/)
[![GitHub License](https://img.shields.io/github/license/WyvernIXTL/gamepadla-plus)](https://github.com/WyvernIXTL/gamepadla-plus/blob/main/LICENSE)

</div>

Gamepadla+ is a program for measuring the polling rate and synthetic latency of gamepads aka. controllers.

* Supports DInput and XInput
* Provides CLI *(Command Line Interface)* and GUI *(Graphical User Interface)*
* Shows polling rate and latency metrics


![GUI preview](https://github.com/WyvernIXTL/gamepadla-plus/blob/cf529db1f42d04e9291f18344ebbfb4677a72f04/img/gamepadla-plus-gui-demo-v1.8.0.webp)

[![asciicast](https://asciinema.org/a/1264153.svg)](https://asciinema.org/a/1264153)


## Installation

### Prebuilt Binaries (Windows)

<a href="https://github.com/WyvernIXTL/gamepadla-plus/releases/latest/download/gamepadla-plus-windows-x64-installer.exe">
  <img alt="Download for Windows" src="https://img.shields.io/badge/Download-Windows-0078D6?style=for-the-badge&logo=windows&logoColor=white" height="65">
</a>

   

> [!TIP]
> Releases have [*attestation*](https://github.com/WyvernIXTL/gamepadla-plus/attestations/) that they were built in CI.


### From Source with [`uv`](https://github.com/astral-sh/uv) (Windows / Linux / MacOS)

```sh
uv tool install --python 3.11 gamepadla-plus
```


## Usage (GUI)

1. Execute the program `Gamepadla+` without any arguments.
2. If you haven't connected any controller do it now and click `Refresh`.
3. Click `Test` and rotate the stick you chose slowly at the edge.
4. Optionally save the result to a JSON file or upload the result to <gamepadla.com>.


## Usage (CLI)

```
# gamepadla-plus --help

 Usage: gamepadla-plus [OPTIONS] COMMAND [ARGS]...

 Gamepad latency and polling rate tester.

╭─ Options ──────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --install-completion          Install completion for the current shell.                                            │
│ --show-completion             Show completion for the current shell, to copy it or customize the installation.     │
│ --help                        Show this message and exit.                                                          │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ─────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ list   List controller id's.                                                                                       │
│ test   Test controller with id.                                                                                    │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
```

### Getting Started

1. List all controllers connected with:
```
gamepadla-plus list
```
```
# gamepadla-plus list
Found 1 controllers
0. Xbox 360 Controller
```

2. Test the controller with the id from step one (`test` defaults to id 0):
```
gamepadla-plus test 0
```
equals here
```
gamepadla-plus test
```
```
# gamepadla-plus test
100%|████████████████████████████████████████████████████████████ | 01.00 ms


  Parameter           Value
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  Gamepad mode        Xbox 360 Controller
  Operating System    Windows
  Polling Rate Max.   1000 Hz
  Polling Rate Avg.   964.36 Hz
  Stability           96.44%

  Minimal latency     0.51 ms
  Average latency     1.04 ms
  Maximum latency     2.0 ms
  Jitter              0.16 ms

```

### Options

#### Test Right Stick

```
gamepadla-plus test --stick right
```

#### Write Result to JSON File

```
gamepadla-plus test --out data.json
```

### Upload Result to <gamepadla.com>

```
gamepadla-plus test --upload
```


## Disclaimer

Gamepadla+ measures the delay between successive changes in the position of the analog stick on the gamepad, rather than the traditional input latency, which measures the time between pressing a button on the gamepad and a response in a program or game.  
This method of measurement can be affected by various factors, including the quality of the gamepad, the speed of the computer's processor, the speed of event processing in the Pygame library, and so on.  
Therefore, although Gamepadla+ can give a general idea of the "response" of a gamepad, it cannot accurately measure input latency in the traditional sense. The results obtained from Gamepadla+ should be used as a guide, not as an exact measurement of input latency.


## Contributors

* *2024-2026* [Adam McKellar](https://github.com/WyvernIXTL)
* *2022-2024* [John Punch](https://github.com/cakama3a) [![John Punch](https://badgen.net/static/icon/John%20Punch?icon=reddit&label&color=orange)](https://www.reddit.com/user/JohnnyPunch/)


## Notable Mentions

Gamepadla+ or gamepadla-plus is a hard fork of [Gamepadla](https://github.com/cakama3a/Polling/tree/71a53424d4faad0edc90577c149f543696a4b947) (known as Polling now).

The testing is based on the method of Christian P.: <https://github.com/chrizonix/XInputTest>.


## License

Licensed under MIT.


## Contributing

Please have a look at [`DEVELOPMENT.md`](./DEVELOPMENT.md).
