Vladimir Kharlashkin

Results 9 comments of Vladimir Kharlashkin

Hi! This is my code for send vibration in gamepad in python (works with xbox 360 controller, dualshock 4, wii remote). ``` import fcntl, struct, array, time EVIOCRMFF = 0x40044581...

@Millsionaire Hi! You must write only correct "/dev/input/event14" for testing this code. Sorry for my english.

In first you must find your gamepad in "/dev/input/eventXX" and insert true event. For testing vibration in terminal try: `fftest /dev/input/eventXX`

I think autofind true event try make with `glob.glob('/dev/input/event[A-Za-z]*')`. Sorry for my english.

I don't have any dualshock for testing, but I'm sure - when dualshock 4 connect with cable to PC - its has vibrate from `fftest /dev/input/eventXX`. One of my friend...

On occasion, I will ask him about BT.

On my example I dont use any python-evdev. Documentation for writing this test program Im getting in [Linux Kernel](https://www.kernel.org/doc/Documentation/input/ff.txt).

Yes. I posted my script with idea to developers added vibration in ds4drv.

Yes, I can add python3 support, but now I dont have a gamepad for testing.