Skip to main content

No project description provided

Project description

cython_xinput

PyPI - Version PyPI - Python Version CI

Installation

pip install cython-xinput

Example

from cython_xinput import XinputButtons, XinputGamepad

xg = XinputGamepad(0)

xg.configure_deadzone(
    left_thumb=0.01,
    right_thumb=0.01,
    trigger=0.01,
)
xg.set_vibration(left=0.00, right=0.2)

while True:
    if not xg.update():
        continue

    print(xg.left_thumbstick())
    print(xg.right_trigger())
        
    buttons = xg.buttons()
    if XinputButtons.A in buttons:
        print("A")
    if XinputButtons.DPAD_UP in buttons:
        print("DPAD_UP")

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

cython_xinput-0.1.0.tar.gz (5.9 kB view details)

Uploaded Source

Built Distributions

cython_xinput-0.1.0-cp312-cp312-win_amd64.whl (42.5 kB view details)

Uploaded CPython 3.12 Windows x86-64

cython_xinput-0.1.0-cp312-cp312-win32.whl (37.6 kB view details)

Uploaded CPython 3.12 Windows x86

cython_xinput-0.1.0-cp311-cp311-win_amd64.whl (42.4 kB view details)

Uploaded CPython 3.11 Windows x86-64

cython_xinput-0.1.0-cp311-cp311-win32.whl (37.4 kB view details)

Uploaded CPython 3.11 Windows x86

cython_xinput-0.1.0-cp310-cp310-win_amd64.whl (42.3 kB view details)

Uploaded CPython 3.10 Windows x86-64

cython_xinput-0.1.0-cp310-cp310-win32.whl (37.4 kB view details)

Uploaded CPython 3.10 Windows x86

cython_xinput-0.1.0-cp39-cp39-win_amd64.whl (43.0 kB view details)

Uploaded CPython 3.9 Windows x86-64

cython_xinput-0.1.0-cp39-cp39-win32.whl (38.0 kB view details)

Uploaded CPython 3.9 Windows x86

cython_xinput-0.1.0-cp38-cp38-win_amd64.whl (43.1 kB view details)

Uploaded CPython 3.8 Windows x86-64

cython_xinput-0.1.0-cp38-cp38-win32.whl (38.0 kB view details)

Uploaded CPython 3.8 Windows x86

cython_xinput-0.1.0-cp37-cp37m-win_amd64.whl (44.0 kB view details)

Uploaded CPython 3.7m Windows x86-64

cython_xinput-0.1.0-cp37-cp37m-win32.whl (38.5 kB view details)

Uploaded CPython 3.7m Windows x86

File details

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

File metadata

  • Download URL: cython_xinput-0.1.0.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for cython_xinput-0.1.0.tar.gz
Algorithm Hash digest
SHA256 92dff70cb41e8d6744e0e7ab56e83fd202e3f05c15f569f923fc0d989fe1bf01
MD5 5eaa85234fd828a7268c3ce9c5336c32
BLAKE2b-256 23befc9d6a56a60f89b9a39f4d70c5beb3a8a75aae4f323d606a380b12f90772

See more details on using hashes here.

File details

Details for the file cython_xinput-0.1.0-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for cython_xinput-0.1.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4cdf4061c29b7005a7f7b74e4e28ea0b208aca9a7285d0b6275e4d394a3466ef
MD5 6355eeb1e5067d8374f777601748843c
BLAKE2b-256 5d2ee85571e3c7530bf9003b83b2885ae9cf774f692655158bc32540f6fd1467

See more details on using hashes here.

File details

Details for the file cython_xinput-0.1.0-cp312-cp312-win32.whl.

File metadata

File hashes

Hashes for cython_xinput-0.1.0-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 82aaef0c92960e36ba19be8c58a876768e0b5c50bb322f6929d204eba13367be
MD5 08c65de7562a5e779e61c995e9b97e09
BLAKE2b-256 f3c800859ad7a391a0d261b06c7f333457d48eaba4313dffbde04d655d25dd8a

See more details on using hashes here.

File details

Details for the file cython_xinput-0.1.0-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for cython_xinput-0.1.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 92b320eaafc12d768291957764479ee2594a443a870512e987449af300b1e19b
MD5 25ba5b93b17a546e70934599cc86c41d
BLAKE2b-256 10ec655937e34da8662dd4a82de96b8b91ee23b00f10423f3c3976a1fc069633

See more details on using hashes here.

File details

Details for the file cython_xinput-0.1.0-cp311-cp311-win32.whl.

File metadata

File hashes

Hashes for cython_xinput-0.1.0-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 2236c3d62b754fd86eed071c3de7da6e256dbc903bd7415d873c488cd74a1926
MD5 ab890d1ea6051b2170eaed0111e16e86
BLAKE2b-256 22be2fcf0a005f3b403d59afaa55f0bb8f1773f9a3e530c98abcf47c383699ce

See more details on using hashes here.

File details

Details for the file cython_xinput-0.1.0-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for cython_xinput-0.1.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ff639c7b8df9ab179bddb673d391675cfe3a2bfac61d9dcd767cf5f91d3a3b6b
MD5 826a16d22862196dfdc19262542a25ee
BLAKE2b-256 54339b066a8117d236d73e487d3b8939219806f4a2200409a940b8b1558a2bab

See more details on using hashes here.

File details

Details for the file cython_xinput-0.1.0-cp310-cp310-win32.whl.

File metadata

File hashes

Hashes for cython_xinput-0.1.0-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 874624f5816ab423c0b6f3306b60c9e9c673f3ccd7c35fd23ce49952e5a62172
MD5 8a384d48ff6bbedcb6462c391eb2606c
BLAKE2b-256 111dbabf0fd46068251062e2a0a31dcfe121fd325d7d87cd0d332198761e5dc0

See more details on using hashes here.

File details

Details for the file cython_xinput-0.1.0-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for cython_xinput-0.1.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 9a8451c3d434b6f0c39a7ee4c83e304ad45641426b571b4db3cf13d9169e536a
MD5 9af23dd0bcd02228a7377b5ce9ae66ef
BLAKE2b-256 3d242e44c298cbcc22d0eea7949dad2efdfa280e74c98f5d39bec82391cdc6f9

See more details on using hashes here.

File details

Details for the file cython_xinput-0.1.0-cp39-cp39-win32.whl.

File metadata

  • Download URL: cython_xinput-0.1.0-cp39-cp39-win32.whl
  • Upload date:
  • Size: 38.0 kB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for cython_xinput-0.1.0-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 8612e162a178bf84adb1704846a3b5e426db2ac3aeccd242277c133a9b15a5ff
MD5 00ca6c43aa5b2f1a01c829a300499748
BLAKE2b-256 b85c836b0636be434e832462d11a27a9df6b4e8ce5b2fac1850d259a4cd4b3b8

See more details on using hashes here.

File details

Details for the file cython_xinput-0.1.0-cp38-cp38-win_amd64.whl.

File metadata

File hashes

Hashes for cython_xinput-0.1.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 2200f0f52c89999af2817b9eed8a4ff0225baac6f37b6893b89dc1385f72e7c2
MD5 cd17bff1899e356200c192030ffabb8b
BLAKE2b-256 fd5fb5369fa464139e32eb2a0d18fddb82f45709b595942effdd6b7da52650c8

See more details on using hashes here.

File details

Details for the file cython_xinput-0.1.0-cp38-cp38-win32.whl.

File metadata

  • Download URL: cython_xinput-0.1.0-cp38-cp38-win32.whl
  • Upload date:
  • Size: 38.0 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for cython_xinput-0.1.0-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 f2d9dc5c9257c3741ea34eeea51451acdf9da9c09a008919ccfe9178403e54fc
MD5 6b1072ba4a680e079bda2afbc5ba027b
BLAKE2b-256 ce18fd39b2b1d6021d5498fd26ff5db7b4a4ceafc19c236f6397692c5b38eb55

See more details on using hashes here.

File details

Details for the file cython_xinput-0.1.0-cp37-cp37m-win_amd64.whl.

File metadata

File hashes

Hashes for cython_xinput-0.1.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 da665f0596f13d9ca97cce6f48dd621791456dd34c838ffb02b4e3808a771fda
MD5 15edbb216c31d8b77ab3a5be916567c4
BLAKE2b-256 60b72f9b3fb38d219335b786d8111aee5649385eea03174ffb9e8729e08cc5a9

See more details on using hashes here.

File details

Details for the file cython_xinput-0.1.0-cp37-cp37m-win32.whl.

File metadata

File hashes

Hashes for cython_xinput-0.1.0-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 e080b7d11009150e8792f51d85bcba2a1207e8e161b4d9627456a72ca685ba28
MD5 622a41cdf3480fdfc13090b2bdf372ac
BLAKE2b-256 1068f37812a122d97358850e8a4ff8357663b5c79117ea38359558e318d1718f

See more details on using hashes here.

Supported by

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