python-jsl
Python Wrapper for JoyShockLibrary using ctypes
How to use
Just import JoyShockLibrary in your project or use from JoyShockLibrary import * if you prefer. For API documentation please
refer to JoyShockLibrary project page. Since this is pure ctypes wrapper, there is slight usage differences.
- To use
JslGetConnectedDeviceHandlesfunction you need to pass int array. You can create int array using(ctypes.c_int * arrayLength)() - To use
JslGetCalibrationOffsetfunction you need to pass three C float pointers. You can create C floats usingvariableName = ctypes.c_float(). They can be used directly to pass pointers of them. For exampleJslGetCalibrationOffset(deviceID, variableName1, variableName2, variableName3) - To create C compatible callback function pointer you need to pass your callback function to
JslCallbackorJslTouchCallbackfunctions. They will return C compatible pointer of your functions. You can pass them directly toJslSetCallbackorJslSetTouchCallbackfunctions.
You can find examples for these differences above in JoyShockLibrary wrapper source.
Requirements
You need to copy JoyShockLibrary.dll (for Windows) to one of your PATH folders or where your script is running.
Both JoyShockLibrary and this python wrapper tested on Windows. They might work on other OSes.
Metadata
Release files for python-jsl-NullMember 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| python-jsl-NullMember-0.0.1.tar.gz | 5.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| python_jsl_NullMember-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.4 kB
Release files / python-jsl-NullMember-0.0.1.tar.gz
| Download URL | python-jsl-NullMember-0.0.1.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8e9d81d2792162ecca9dfabb54897914e70b4437dbf4ee58398bb1cea403224a
|
|
BLAKE2b-256 checksum How to use checksums |
aa83c9956c994069484ff8afb7b938c7946022d503f77e7fa6da82eb92423857
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6
|
Release files / python_jsl_NullMember-0.0.1-py3-none-any.whl
| Download URL | python_jsl_NullMember-0.0.1-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
12b4c24fd489fa6976216e0f37a004a1c4cb6ec63abc7568da80d9011e1732b1
|
|
BLAKE2b-256 checksum How to use checksums |
4dbf596f35476549d67260b8ec773c58d7c043ab2d1553f3ff8b61075e99714e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6
|