cc.XboxController
Getting input from Microsoft XBox 360 controllers via the XInput library on Windows.
Installation
pip install cc-xboxcontroller
Usage
import time
from cc.xboxcontroller import XboxController, Axis
def main():
"""
"""
stick = XboxController(0)
while True:
stick.update()
stick.set_rumble(abs(stick.get_left_trigger()))
stick.set_rumble(abs(stick.axes[Axis.RTrigger]))
print("A Btn:", stick.get_a_button(), end="")
print("\tD-pad:", stick.get_dpad(), end="")
print("\tX Axis:", stick.get_left_x())
time.sleep(.01)
if __name__ == "__main__":
main()
Metadata
Release files for cc.xboxcontroller 2024.9.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cc_xboxcontroller-2024.9.2.tar.gz | 7.3 kB | Without provenance | Details for cc_xboxcontroller-2024.9.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cc.xboxcontroller-2024.9.2-py3-none-any.whl | Python 3 | none | any | Details for cc.xboxcontroller-2024.9.2-py3-none-any.whl |
Total release size: 14.7 kB
Release files / cc_xboxcontroller-2024.9.2.tar.gz
| Download URL | cc_xboxcontroller-2024.9.2.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c2dd9e76d67b9486bb6696b7e8048c15dfa50b2d496d36b213b3fba2c1c6deac
|
|
BLAKE2b-256 checksum How to use checksums |
60e88a08f4f34ae21c97a4d054e7b25ecb6dfcc477a65b5e9ba0ae8e7308e39a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.5
|
Release files / cc.xboxcontroller-2024.9.2-py3-none-any.whl
| Download URL | cc.xboxcontroller-2024.9.2-py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
142897c6635d018b69ba8cb6a21d7d4dd6a087b3317019a05d6ccc129eab8dcb
|
|
BLAKE2b-256 checksum How to use checksums |
f367851bbbd34078ca0e78fe3d63ae36170089d60bb18bbb9caad17fad03a39c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.5
|
Security for cc.xboxcontroller 2024.9.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.