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.2.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.2.tar.gz.
File metadata
- Download URL: simplevgpad-0.1.2.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 |
c718b66eed3175584f16378a9717b62681b6ebf3028240a8e9eddfeffabdb8f3
|
|
| MD5 |
621fc7eaab466428b006b106a48b6b90
|
|
| BLAKE2b-256 |
b96c23da5097d47c7746fb411210c2f11783c833a8d6bb0462466e3886e7cec8
|
File details
Details for the file simplevgpad-0.1.2-py3-none-any.whl.
File metadata
- Download URL: simplevgpad-0.1.2-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 |
f9a54726967019e095d2ee18b4c8179111a0ae8779534eb7de4d1f32a0765eec
|
|
| MD5 |
6d5e24060e8adca8568db084c1bf8156
|
|
| BLAKE2b-256 |
d26713a15935a5c020ed998e6b5986b2f3118a4699d0029e3bcdcee4e208361b
|