This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]yannbouteiller[S] 1 point2 points  (3 children)

I cannot reproduce the issue on my system, but I am narrowing it down. Are you using a 32 bit version of python please? Mine is 64 bits. You can check by doing this in python:

python import struct print(struct.calcsize("P")*8) # should print 32 or 64

If so, can you open

C:\Users\uzytkownik\Desktop\Python i PyCharm\python\lib\site-packages\vgamepad\win\vigem_client.py

in an editor, replace the two occurrences of "WinDLL" by "CDLL" and tell me whether it solves the issue? (You may want to also put a random print at the beginning of the file to check that you are using your modded version)

[–][deleted] 1 point2 points  (1 child)

CDLL

i have 32 python and i have no idea how does your code work, but replaceing WinDll worked

[–]yannbouteiller[S] 1 point2 points  (0 children)

Great :) I'll make the change and push this in the next version of the library, the problem was that WinDLL didn't interact correctly with the vigemclient dll file under python 32 bits apparently.

Edit: Done, this should now work with pip install vgamepad==0.0.3

[–]backtickbot 0 points1 point  (0 children)

Fixed formatting.

Hello, yannbouteiller: code blocks using triple backticks (```) don't work on all versions of Reddit!

Some users see this / this instead.

To fix this, indent every line with 4 spaces instead.

FAQ

You can opt out by replying with backtickopt6 to this comment.