Simple wrapper around vgamepad for easier controller inputs
Project description
simplevgpad
A Python helper library for simplified Xbox controller input using vgamepad.
Defines 2 classes which inherit the vgamepad.VX360Gamepad class, and adds methods to slightly simplify controller input simulation for simple projects.
Installation
pip install simplevgpad
Examples
controller
from simplevgpad import controller
game = controller()
game.press_a()
game.hold_left_trigger(2)
controller_async
from simplevgpad import controller_async
import asyncio
async def main():
game = controller_async()
await game.press_a()
asyncio.run(main())
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
simplevgpad-0.1.3.tar.gz
(4.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file simplevgpad-0.1.3.tar.gz.
File metadata
- Download URL: simplevgpad-0.1.3.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e586bc6de750367e5c0565ec3881842df9abba87fcb62efc81c5ae290192b4f1
|
|
| MD5 |
f532a9a593bda3e183d333b2d6df684e
|
|
| BLAKE2b-256 |
3954d4ffefe6f8a32f42b1b2d3d76f9c4853116140c66c77c058517eef3369ce
|
File details
Details for the file simplevgpad-0.1.3-py3-none-any.whl.
File metadata
- Download URL: simplevgpad-0.1.3-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c8dba6c27029216e674b1e55f862f02759e9b4b0cb6a0d7a48ebc49716bbe68
|
|
| MD5 |
2bee2e35d9947a49c79e2d15219aa27d
|
|
| BLAKE2b-256 |
635e069478588d2458befad186ddb3e0ef338fc575cb91c9e2ea0d9e9bd25f2c
|