Skip to main content

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.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simplevgpad-0.1.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file simplevgpad-0.1.0.tar.gz.

File metadata

  • Download URL: simplevgpad-0.1.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for simplevgpad-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1f8e5c4802303ffd918fa008c2d1099ed8ca72dd2d6968b951f959df457ffe8d
MD5 ebda4161daf8b56bcf3a5f226933154f
BLAKE2b-256 0903e4f2ca08c075f0b7b6ea5e9f806b428f9c3fa9ec64c4cd75d158c9401e2a

See more details on using hashes here.

File details

Details for the file simplevgpad-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: simplevgpad-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for simplevgpad-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8b462b904bd37a8598765b49339bf2103f904c6f0d021f60b811a4de88e97655
MD5 345add62ee7d1f52b2e9b0c594e83d18
BLAKE2b-256 b544f0139c127ebe49f1928374ec6d89a319f680589e4b6cc7bf09f7e5286285

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page